ctu - luxembourg/muxcode-clm GitHub Wiki

CTU()

Function: ctu(<number>, <units-from>, <units-to>)

The ctu() function will convert <number> that was originally in the units of <units-from> into the units of <units-to>.

The units available are (r)adians, (g)radians, and (d)egrees.

180 degrees = PI (3.141592653589793) radians = 200 gradians.

Examples: > say ctu(180,d,g) You say, "200" > say ctu(180,d,r) You say, "3.141592653589793"

Related Topics: sin, cos, tan, asin, acos, atan, pi