in reply to issue with sprintf..
Since the floating point mantissa is much larger, %f for instance¹ should mitigate the "problem" for some time.
DB<109> $val=12143951645 => "12143951645" DB<110> sprintf("%11.0f", $val); => "12143951645"
Only you can tell us how large your numerical ranges are...
Cheers Rolf
( addicted to the Perl Programming Language)
¹) see also this post for discussion of string template %s
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: issue with sprintf..
by sathya83aa (Acolyte) on Jan 09, 2014 at 10:35 UTC | |
by LanX (Saint) on Jan 09, 2014 at 10:38 UTC | |
by sathya83aa (Acolyte) on Jan 09, 2014 at 11:45 UTC | |
by hdb (Monsignor) on Jan 09, 2014 at 10:45 UTC |