Wouldn't 25.8 simply be 258 x 10^-1. I was under the impression that floating decimal was an integer with a 'power' value that was based on powers of ten, not powers of 2. What you've described seems to be some odd 'binary fraction' system, that seems interesting yet very complex and (I would have thought) very inaccurate.
Regards Darren Tracey Systems Analyst HR Systems and Fastrack Wealth and Corporate Systems Suncorp p: + 61 7 3232 4091 (x64091) f: + 61 7 3232 4744 e: [EMAIL PROTECTED] l: Lvl 3, 388 Queen St Brisbane QLD 4000 m: Suncorp IPC IT048, GPO Box 1453, Brisbane QLD 4000 -----Original Message----- From: Adam Cameron [mailto:[EMAIL PROTECTED] Sent: Saturday, 24 September 2005 6:42 PM To: CFAussie Mailing List Subject: [cfaussie] Re: Why is 25.80 not equal to 25.8? > BATCH_ITEMS.SB_FUND_PAYMENT_AMOUNT eq (BATCH_ITEMS.SB_FUND_AMOUNT_ALLOCATED + BATCH_ITEMS.SB_REFUND_AMOUNT) > where the first number is 25.8 and the sum of the addition is 25.8 Via what process is BATCH_ITEMS.SB_FUND_PAYMENT_AMOUNT being set to 25.8? Decimal floating point math can only ever be approximated by computers, so it's fairly likely for "25.8" via one process to not equal "25.8" via some other process, given that 0.8 is not easily representable in binary (it seems to be an irrational number, checking to only 10 places). 0.8 = 2^-1 + 2^-2 + 2^-5 + 2^-6 + 2^-9 + 2^-10... -- Adam --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ ----------------------------------------------------------------------------------- This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its related entities "Suncorp". Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 55 or at suncorp.com.au. The content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments from your system. If this e-mail constitutes a commercial message of a type that you no longer wish to receive please reply to this e-mail by typing Unsubscribe in the subject line. --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
