Am I missing something (numberFormat again)
dunbarx at aol.com
dunbarx at aol.com
Fri Jan 10 23:08:30 EST 2014
Hi..
Its local, all right, always has been. I think it would be a great suggestion in the forum to make it global, or at least as an option.
Craig
-----Original Message-----
From: Geoff Canyon <gcanyon at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Fri, Jan 10, 2014 10:52 pm
Subject: Am I missing something (numberFormat again)
Is there some way to change the default numberFormat? It consumed about
half my day today. I need precision for what I'm doing, and the six decimal
place default won't cut it. I was working on JSON import/export, and the
fact that the debugger also defaults to six decimal places makes it really
tedious to figure out where exactly you're losing precision. In the end, a
fit of frustration led to me putting
set the numberFormat to "0.##############"
at the start of about twenty handlers. Some combination of that fixed the
problem -- I still don't know where it was exactly. In any case I'm now
happily importing and exporting, on to rendering:
{
"Titan": {
"z8": .00000000,
"dx-6": 0000000,
"dz-6": 0000000,
"name": "Titan",
"radius": 2576000,
"p": 0,
"x8": 14267.25400000,
"r": 0,
"mass": 134520000000000000000000,
"dp": 0,
"dr": 0,
"w": 0,
"G8": 0.0008977649568,
"dy-6": 0000000,
"x": 1426725400000,
"y8": 12.21870000,
"y": 1221870000,
"z": 00000000,
"dw": 0,
"dx": 0.000000,
"dy": 0.000000,
"dz": 0.000000},
"Haumea": {
"z8": .00000000,
"dx-6": 0000000,
"dz-6": 0000000,
"name": "Haumea",
"radius": 575000,
"p": 0,
"x8": 64840.00000000,
"r": 0,
"mass": 4010000000000000000000,
"dp": 0,
"dr": 0,
"w": 0,
"G8": 0.0000267620984,
"dy-6": 0000000,
"x": 6484000000000,
"y8": .00000000,
"y": 00000000,
"z": 00000000,
"dw": 0,
"dx": 0.000000,
"dy": 0.000000,
"dz": 0.000000},
etc.
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list