Please see print, printf, sprintf, What Every Computer Scientist Should Know About Floating-Point Arithmetic.c:\@Work\Perl\monks>perl -wMstrict -le "my $hash; $hash->{TGT} = 3335.9999999999995; printf '%0.20f', $hash->{TGT}; " 3335.99999999999950000000
Give a man a fish: <%-{-{-{-<
In reply to Re: Variables are automatically rounded off in perl
by AnomalousMonk
in thread Variables are automatically rounded off in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |