FANDOM


ITOF is a CAOS command which casts to floating point.

Usage

Syntax: ITOF I (integer)

This returns a float made from integer I. Note that CEE automatically casts to the appropriate type, so the only real use for ITOF is for things like forcing floating point divison (DIVV).

Contrary to expectations, passing a float to ITOF will return the float, rather than rounding it. (Perhaps CEE internally thinks of I as a float.)

Example

lc2e command line:

> outv itof 2
2.000000
> outv itof 2.5
2.500000

See also

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.