Jun-20-2020, 04:15 PM
(Jun-20-2020, 01:56 PM)Mickey53usa Wrote: buran;Yes, you do. Just print it without any formatting so that you see what you really get
No, I don't think that the formula in question is wrong.
the string formatting decimal places does not affect the decimal point
>>> preasure = 26.78371 >>> f'{preasure:.2f}' '26.78' >>> f'{preasure:.5f}' '26.78371' >>> preasure = 26783.71 >>> f'{preasure:.2f}' '26783.71' >>> f'{preasure:.5f}' '26783.71000'as you can see it fill in with 0 if not enough decimal digits, it does not move the decimal point
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs