[Pdx-pm] Unexpected math result
michael at jamhome.us
Wed Dec 21 11:47:22 PST 2011
Nevermind, found the FAQ.
(asking questions remains the single greatest
means of finding answers after you've exposed your ignorance to the world)
Michael R wrote:
cross post from perlmonks)
mikeraz at hive:~> perl -e 'my $x =
> (.0425 * 2) + .0025; print
$x - (.0425 * 2) - .0025, $/;'
> mikeraz at hive:~>
> Silly me would expect something like 0 to be printed. Why
> 2.16840434497101e-18? (OK, round it off and you have 0, but
Appropriate && Follow Your Curiosity
> Pdx-pm-list mailing
> Pdx-pm-list at pm.org
&& Follow Your Curiosity
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pdx-pm-list