unrealblue opened this issue on Mar 04, 2020 ยท 30 posts
adp001 posted Mon, 23 March 2020 at 11:45 AM
If using integers where such a good idea, most programmers would use integers. But they don't. For a reason. Using integers instead of float did make sense in the old times we had seperate floatingpoint processors. But not in all machines or just slow ones.
Python works with 64-bit integers by default. If you use floats (internally Python uses C-doubles), your maths are more then precise enough. Use decimals if you want to avoid rounding errors, especially for financial maths. Or use (lib) array as I did above. array.array("d",....) gives you 64-bit double-precision floats. But be ashured, this is not required while working with morphs in Poser. There is a problem with code written in C using single-precision floats in some 3D-modules. Or numpy forced to single precision in some Python code.
Regarding to numpy: array.array() needs less memory. That's while I use it often ;) (but numpy is more common)