You could try treating that number as a list?
The you could do something like...
<CFSET iCheck = ListFirst(DecryptedData, ".") - ListRest(DecryptedData, ".")>
HTH
Mike
----- Original Message -----
From: Damien McKenna <[EMAIL PROTECTED]>
Date: Mon, 28 Jun 2004 10:43:24 -0400
Subject: Bug in CFMX's arithmetic functions
To: CF-Talk <[EMAIL PROTECTED]>
I just discovered a weird bug in CFMX 6.0's arithmetic functions.
I'm adding a checksum to a form. Its a simple function, I concatenate
two numbers separated by a decimal, encrypt then urlencode it. On the
subsequent page it decodes then decrypts the string. This part works
fine. However, when I subtract the integer portion (number 1) to leave
the decimal part (number 2) I get the wrong number.
Original string: 123.123
Number 1: 123
Number 2: 0.100000000093
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Bug in CFMX's arithmetic functions Damien McKenna
- Re: Bug in CFMX's arithmetic functions JediHomer
- Re: Bug in CFMX's arithmetic functions Damien McKenna
- RE: Bug in CFMX's arithmetic functions Nathan Mische
- Re: Bug in CFMX's arithmetic functions Damien McKenna
- Re: Bug in CFMX's arithmetic functions Rick Root
- Re: Bug in CFMX's arithmetic functions Damien McKenna