Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Strange multiply phenomenon

From: dhsunanda:gma:il at: 4-Aug-2009 23:01

> print to-integer multiply 76.71 100
You are a victim of imprecise conversions btewen floating poiut numbers and integers:
>> 7671 - ( 76.71 * 100)
== 9.09494701772928E-13 One work around: use ROUND
>> round 76.71 * 100
== 7671 Sunanda.