Apr-30-2022, 09:43 PM
Quote:The precision is a decimal number indicating how many digits should be displayed after the decimal point for a floating point value formatted with 'f' and 'F', or before and after the decimal point for a floating point value formatted with 'g' or 'G'.
the library reference for 3.7.2 says the above, specifically "after the decimal point". yet, what i find resulting from format() is that the precision value includes the decimal point itself. by setting the precision to 6, i get 5 decimal digits after the decimal point.
has anyone else observed this? i don't know whether this is a bug or a documentation error.
i am using 3.6.9 and reading docs for 3.7.2 because PDF was messed up for 3.6. i wonder if any of this has changed in later versions.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.