From: Chas. Owens
Sent: Saturday, January 27, 2018 9:04 AM
To: Peng Yu
Cc: Perl Beginners
Subject: Re: What is the substitute for $#?
...
You can find the exact value of DBL_DIG on your system with the following
C code:
...
The POSIX module will also tell you the value of DBL_DIG.
perl -MPOSIX -le "print POSIX::DBL_DIG;"
15
In the event that 'perl -V:nvtype' reports that nvtype is long double, you
would use the value output by running:
perl -MPOSIX -le "print POSIX::LDBL_DIG;"
and if 'perl -V:nvtype' reports __float128, then the POSIX module won't
provide you with FLT128_DIG (which is 33).
Cheers,
Rob
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/