Wondering if someone could help me out with a Format problem. I’m printing out points to a file, but I don’t want the exponential printed out. I’ve notice this occuring with very small numbers in Max. For example, [-86.6734,6.41911e-007,16.7711] where the y component in the list has an exponent. I was hoping there was some easy command to get rid of this exponent and force the number to print out in decimal form, but I haven’t found anything. I was wondering if someone could point me in the right direction. Am I missing something big here?
I’m currently using a simple loop to decide if the number is smaller than a certain amount (let’s say .00001 for example) if the number is smaller than that, then print out “0” in place of the exponential number.
if MyPoint.y < .00001 do
(
MyPoint.y = 0
print MyPoint.y
)
Surely, there must be an easier way than this. Or is everyone else using a loop to convert their exponential numbers. Anyone know of a way to completely convert without losing any precision in the exponential number given different exponential values. Say a function that takes [7.24311e-008, 6.41911e-007, 12] and converts to [0.000000724311, 0.00000641911, 12]. Any help would be greatly appreciated. Thanks.
Let me know how it goes, I assume your using c++. 