%.0f is for the var display. The conversion to int seems to work fine. Double is not %d, but %f or %u. %d is also int.

http://www.cplusplus.com/reference/clibrary/cstdio/printf.html


Click and join the 3dgs irc community!
Room: #3dgs