in reply to Re^2: Why the Integer part of this calculation is 102?
in thread Why the Integer part of this calculation is 102?

Others have answered you already; I just want to add that in Perl 6 your code does what you expect. It achieves that by storing decimal numbers as fractions/rationals internally.
$ perl6 > say (42435.3408).perl 26522088/625 > say (42435.3408).WHAT Rat() > say 42435.3408 / 411.9936 103 > printf "%.20f\n", 42435.3408 / 411.9936 103.00000000000000000000
Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^4: Why the Integer part of this calculation is 102?
by alokam (Initiate) on Mar 23, 2010 at 19:13 UTC
    Thank you all for your quick response on my issue. Greatly appreciate your help. -Anju