Hi All,
can u help me how to convert digit to integer
example :
2.333 will be converted to 2
2.666 will be converted to 3
so digit will be converted to Closest integer ;
thx
Develop games in your browser. Powerful, performant & highly capable.
use expression int(string or variable)
also, if you want only the rounded down valor, use floor, and ceil to the rounded up valor.
scirra.com/manual/126/system-expressions
thanks Friends
Joannesalfa - int(number) will round down, so 2.666 will give 2 instead of 3. Use the floor(number) expression instead.