Welcome to the Creatures Wiki! Log in and join the community.
FTOI
Jump to navigation
Jump to 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]
- ITOF is the other way around
- CAOS language spec for token types