next up previous

12.5.2.3 Convert From Degrees to Radians

The deg-rad function converts its only argument (which should be a numeric expression) from units of degrees to units of radians (360 degrees = 2¹ radians). The return value of this function is a float.

Syntax

(deg-rad <numeric-expression>)

Example

CLIPS> (deg-rad 180)
3.141592653589793
CLIPS>


next up previous