Steve, I can see your logic and understand the difference between money and FP, but it still doesn't explain the 2 different answers.
Thanks, MV -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Steve Alex Sent: Thursday, January 31, 2013 12:28 PM To: Active4D Developer Discussion List Subject: Re: [Active4d-dev] Round error in Active4D On Jan 31, 2013, at 10:54 AM, Steve Alex wrote: > 907.4999999999999 rounded to 2 is 907.7 > > Just one of those weird FP internal rounding problems. I'll just add that when dealing with money as a result, I think I would always added 0.005 before rounding. $fee_rounded:=Round($fee + 0.005; 2) This was usually remembered after beating my head against the wall trying to make FP act like money (or dollars and cents). Steve _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/ ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2890 / Virus Database: 2639/6059 - Release Date: 01/26/13 _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
