in reply to Re: int() function
in thread int() function
Not that it's of great importance, but is there a reason that you've chosen to use "%.100f" formatting instead of "%.100g" formatting ?
The "%.100g" formatting should remove any trailing zeros, thereby alleviating the need for the regex.
I know that, on some systems, %g formatting can be buggy, but I don't know of any system where "%.100g" misbehaves && "%.100f" functions correctly.
Cheers,
Rob
The "%.100g" formatting should remove any trailing zeros, thereby alleviating the need for the regex.
I know that, on some systems, %g formatting can be buggy, but I don't know of any system where "%.100g" misbehaves && "%.100f" functions correctly.
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: int() function
by jszinger (Scribe) on Oct 27, 2020 at 15:43 UTC | |
by syphilis (Archbishop) on Oct 28, 2020 at 00:16 UTC | |
Re^3: int() function
by ikegami (Patriarch) on Oct 30, 2020 at 11:58 UTC |
In Section
Seekers of Perl Wisdom