SQLite radians() 函数使用指南

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

SQLite

radians()
函数将指定的度数值转为弧度值并返回结果。

如果您需要将弧度值转为度数值,请使用

degrees()
函数。

radians()
语法

这里是 SQLite

radians()
函数的语法:

radians(degrees)

参数

degrees
必需的。 一个度数值。

返回值

SQLite

radians()
函数将指定的度数值转为弧度值并返回结果。

如果参数为

NULL
radians()
函数将返回
NULL

如果您提供了一个不是数字类型的参数,

radians()
函数将返回
NULL

radians()
示例

本示例展示了 SQLite

radians()
函数的基本用法:

SELECT    radians(45),    radians(180),    radians(-180);

  radians(45) = 0.785398163397448 radians(180) = 3.14159265358979radians(-180) = -3.14159265358979

相关推荐

热文推荐