in reply to Re: Improve my Code: Subroutines
in thread Improve my Code: Subroutines
my $r = ($i)*(1e-6); #radii are in microns
Why do you put both factors in brackets?
Integers will be presented without any loss of precision in Perl
But only as long as the number "fits" into perls integer type, which typically is a 32 bit signed integer or 64 bit signed integer. Once you exceed the limit (+/- 231 resp. +/- 263), perl silently converts the value to a floating point number with loss of precision (perlnumber).
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Improve my Code: Subroutines
by CountZero (Bishop) on Jun 14, 2009 at 15:56 UTC |