Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Negative zero? There's gotta be a sprintf that undoes that, right?by suaveant (Parson) |
on Dec 12, 2007 at 15:13 UTC ( [id://656649]=note: print w/replies, xml ) | Need Help?? |
Now... here's a really sick method that uses the regexp, but only to remove the leading - when needed. -0 == 0 but also -0 lt 0 so...
minimal regexp work and works for any precision. Update Caveat... only works in locales where "-" is lower than 0-9
In Section
Seekers of Perl Wisdom
|
|