I think your missing the point Andrew... Coldfusion is not strongly typed, so one would assume that a simple calculation between a integer and a decimal would come back correctly.

Cheers
Gareth

Andrew Scott wrote:

Gareth,

 

You have been politely told that this is not a bug, and it does occur on every know programming language that I have ever used.

 



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Gareth Edwards
Sent: Tuesday, 20 February 2007 1:42 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Strange calculation behavior on CF 7.02

 

Now.... you show me in the Coldfusion Documentation where this is outlined as a known issue?

Cheers
Gareth.

Ryan Sabir wrote:

 

Doesn't really matter why... Maybe there's a gremlin that lives in the last 0.0000000000015 of every floating point number. Every now and then he will wake up and mess up your number, and sometime's he'll stay asleep. Write your code expecting he might pop round for a visit, and he won't bother you.

 

If you really want to find out why, then you'll need to do some pretty hard core maths to work out how fractions are represented in binary. I prefer to leave that to the geeks who work at Intel and AMD while I get on with my work.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to