Yes, they're the same within a reasonable rounding error.  Keep in mind that
you'll get some differences depending on how the calculation is actually
carried out, as these numbers are getting toward the limits of accuracy with
floating point.  For example, the JS result might be different in different
browsers or on different platforms.  However, depending on your tolerances,
it shouldn't really matter.

As for the other question, numberformat() should clean up the CF output
nicely.



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

: -----Original Message-----
: From: Critz [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 02, 2002 10:55 PM
: To: CF-Community
: Subject: CF and JS
:
:
: oi CF-Community,!!
:
:   in javascript
:   this:
:        var tmpValue = 1321.17405912 * 13.6307948336 * 2.87603038824E-009;
:        alert(tmpValue);
:   equals:
:          0.00005179343195439509
:
:
:   in CF
:   this:
:        tmpValue = 1321.17405912 * 13.6307948336 * 2.87603038824E-009;
:        writeoutput("{" & tmpValue & "}");
:   equals:
:          5.17934319544E-005
:
:
:  now mind you I am assuming these values are the same, just in
: different formats or are they not?
:
:  and  if  they  are,  how  you  reckon  I  can  get it back to a
: regular format, cuz it's shaggin my
:  calculations....
:
:  Crit
:
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to