Hello!
Does anyone know of a way to export floating point values to a set decimal place? In my case, around 3 decimal places would be fine, so 0.0001 would become 0, 1.5549 becomes 1.555 etc.
It's for an animation exporter that works by move commands (ie Move(body, x_axis, 40) and so on), but when I format my test animation to a script file I very often see things like -3.90266e-007, which is pretty much zero but not exactly intuitively so.
By Guessmyname · 2011-06-24
Anubis · 2011-06-25