On Fri, 01 Apr 2011 10:51:58 +0300, Shlomi Fish wrote:
> 2. The problem with 1E9 is that I think it's a floating point number
> (though Perl 5 may have some intelligence there). Not sure it matterns a
> lot for Perl but if you do something like 1.27E9 you may get weird
> side-effects due to:

Yup, anything in scientific notation becomes floating point, but I doubt 
it's going to matter in the case of 1E9:

$ perl -MDevel::Peek -e 'Dump($_) for 1E9, 1000000000, 1E2'
SV = NV(0x8a4aee8) at 0x8a367b8
  REFCNT = 2
  FLAGS = (NOK,READONLY,pNOK)
  NV = 1000000000
SV = IV(0x8a367c4) at 0x8a367c8
  REFCNT = 2
  FLAGS = (IOK,READONLY,pIOK)
  IV = 1000000000
SV = NV(0x8a4aef0) at 0x8a367d8
  REFCNT = 2
  FLAGS = (NOK,READONLY,pNOK)
  NV = 100


-- 
Peter Scott
http://www.perlmedic.com/     http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
http://www.oreillyschool.com/courses/perl3/

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to