Monk Multiplication Operation On Rational Numbers Produces Irrational Product
(Doc ID 1410008.1)
Last updated on JULY 26, 2012
Applies to:Sun Schema Runtime Environment (SRE) - Version 5.0.5u2 and later
Information in this document applies to any platform.
Checked for currency JUL-26-2012
On : SRE 5.0.5U2 Monk function
When performing multiplication operation on two rational numbers, the user gets an irrational product. This seems to occur when the variable holding one of the numbers starts as a string and is converted to a number using string->number function.
Also occurs in context of the eway: stcewgenericmonk.exe
when sAmount was a variant set = "32.48"
(display (* (string->number sAmount) 100))
results to: 32479999999999999999
It should be 3248.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document