Ctu()

From TinyMUX
Revision as of 19:42, 25 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions {{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 <u...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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.

Example

> 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()