I was just noticing that on the Tomb Explorer standings page, D4RK3 54B3R has over 1 million treasure and the output looks like "1.08971e+006".
I'm a little worried about things getting messed up if I try to num2text() this value before it gets submitted to the hub. Would this have an effect on the ordering? Could it mess up anything else, or should I go ahead and do it?
ID:133046
![]() May 25 2009, 4:22 pm
|
|
This could potentially have an effect on ordering, depending on how the database interprets the text in a numerical sort. Basically all you have to do is use a routine that is "millions-safe" to print out the number before sending it to the hub.
Internally since BYOND's number handling uses regular 32-bit floating point numbers, you have only 24 bits of decimal precision. Depending on how granular your scores are, that might keep its accuracy higher than the typical 16.8 million, but if you're anticipating total scores in that range I'd suggest using a custom big number handler to deal with it.
Lummox JR