Skip to content

Commit 40edf9e

Browse files
committed
explain %.2f
1 parent 7be85f1 commit 40edf9e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ for thing in things:
362362
```
363363

364364
Measure how long it takes for the user to answer a question.
365-
The `%.2f` trick is explained [here](https://pyformat.info/).
365+
The `%.2f` rounds down to 2 decimals, and you can find more
366+
formatting tricks [here](https://pyformat.info/).
366367

367368
```py
368369
import time

0 commit comments

Comments
 (0)