add math floor while converting int to var

https://github.com/processing/processing/issues/3