in reply to TANGENT = %.17g formatting (Re^8:int() function)
in thread int() function
%g a floating-point number, in %e or %f notation
The full piece of documentation is:
I think it's just meant to provide a quick indication of what "%g" formatting does, for anyone who is unfamiliar with it.
Those are the only excuses I can come up with ;-)
Cheers,
Rob
The full piece of documentation is:
I think the last of those 3 is just shorthand for:%e a floating-point number, in scientific notation %f a floating-point number, in fixed decimal notation %g a floating-point number, in %e or %f notation
Note that "%.*g" will give you scientific notation and "%*g" will give you fixed decimal notation (ie fixed to 6 digits of precision).%g a floating-point number, in scientific notation or fixed decima +l notation
I think it's just meant to provide a quick indication of what "%g" formatting does, for anyone who is unfamiliar with it.
Those are the only excuses I can come up with ;-)
Cheers,
Rob
|
---|
In Section
Seekers of Perl Wisdom