Welcome to the Creatures Wiki! Log in and join the community.

FTOI

From Creatures Wiki
Jump to: navigation, search

FTOI is a CAOS command which casts to integer.

Usage[edit]

Syntax: FTOI F (float)

This returns an integer created by rounding F.

Example[edit]

This is what will happen on the CAOS command line:

> outv ftoi 3.2
3
> outv ftoi 3.5
4

See also[edit]