Steven Looks like floating point math
try print round 76.71 * 100 On Wed, Aug 5, 2009 at 9:20 AM, Steven White<[email protected]> w= rote: > 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 f= ile, for sending to a bank. =A0I have been off by a penny on my current att= empt and I have narrowed it down to the following REBOL statement that I ca= n 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) > [email protected] > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > --=20 Graham Chiu http://www.synapsedirect.com Synapse - the use from anywhere EMR. -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
