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

[REBOL] Re: Strange multiply phenomenon

From: compkarori::gmail::com at: 5-Aug-2009 9:58

Steven Looks like floating point math try print round 76.71 * 100 On Wed, Aug 5, 2009 at 9:20 AM, Steven White<swhite-ci.bloomington.mn.us> wrote:
> I have been trying to convert a decimal number, representing dollars and cents, into a fixed-length string for use in building a fixed-format data file, for sending to a bank. =A0I have been off by a penny on my current attempt and I have narrowed it down to the following REBOL statement that I can run at the interpreter prompt, giving the following result: > >>> print to-integer multiply 76.71 100 > 7670 >>> > > Can anyone explain this? > > Thank you. > > Steven White > City of Bloomington > 1800 W Old Shakopee Rd > Bloomington MN 55431-3096 > USA > 952-563-4882 (voice) > 952-563-4672 (fax) > steven.white-ci.bloomington.mn.us > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- Graham Chiu http://www.synapsedirect.com Synapse - the use from anywhere EMR.