in reply to perl floating number addition
the numbers in computers are approximations and hence comes such issues esp while using higher level programming languages such as Perl.$count = 895.3; while ($count <= 899.99) { $count += 0.01; printf "%6.2f",$count; #(updated) print "\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: perl floating number addition
by Albannach (Monsignor) on Jul 18, 2009 at 13:49 UTC | |
by biohisham (Priest) on Jul 18, 2009 at 14:12 UTC |