SQLite tan() 函数使用指南

来源:这里教程网 时间:2026-03-25 17:59:00 作者:

SQLite

tan()
函数返回指定弧度的正切。

tan()
语法

这里是 SQLite

tan()
函数的语法:

tan(number)

参数

number
必需的。 一个用于计算正切的数值,以弧度为单位。

返回值

SQLite

tan()
函数返回指定弧度的正切。

如果参数

number
NULL
tan()
函数将会返回
NULL

tan()
示例

本示例展示了 SQLite

tan()
函数的基本用法:

SELECT    tan(2.5),    tan(0.2),    tan(-0.5),    tan(-0.2),    tan(0),    tan(pi());

 tan(2.5) = -0.74702229723866 tan(0.2) = 0.202710035508673tan(-0.5) = -0.54630248984379tan(-0.2) = -0.202710035508673   tan(0) = 0.0tan(pi()) = -1.22464679914735e-16

这里,我们使用了

pi()
函数获取了圆周率 π 的近似值。

相关推荐

热文推荐