No such thing as a small change | |
PerlMonks |
Re: TANGENT = %.17g formatting (Re^8:int() function)by syphilis (Archbishop) |
on Oct 26, 2020 at 23:57 UTC ( [id://11123193]=note: print w/replies, xml ) | Need Help?? |
%g a floating-point number, in %e or %f notation The full piece of documentation is: I think the last of those 3 is just shorthand for: Note that "%.*g" will give you scientific notation and "%*g" will give you fixed decimal notation (ie fixed to 6 digits of precision). 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
|
|