FTOI

From Creatures Wikia

Jump to: navigation, search

FTOI is a CAOS command which casts to integer.

Usage

Syntax: FTOI F (float)

This returns an integer created by rounding F.

Example

This is what will happen on the CAOS command line:

> outv ftoi 3.2
3
> outv ftoi 3.5
4

See also

Personal tools