Comment on What is this format specifier?

steersman2484@sh.itjust.works ⁨1⁩ ⁨year⁩ ago

Please put your code between tripple backticks in a seperate line above an below your code. Single backticks are only for inline code like this.

To answer your question, the %.2f means it should only print two digits after the decimal point.

You can also use some other variations like this:

Just play a bit around with it and you will get it.

source
Sort:hotnewtop