print_hundredths
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
round_vs._format [2023/02/13 23:05] – raju | round_vs._format [2023/02/13 23:07] – raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== round vs. format | + | ===== round vs. format ===== |
- | ===== write simple data ===== | + | ==== write simple data ==== |
< | < | ||
$ ipython | $ ipython | ||
Line 34: | Line 34: | ||
* To output dollars and pennies, format expression is better than rounding as it always gives the same number of digits after the decimal point. | * To output dollars and pennies, format expression is better than rounding as it always gives the same number of digits after the decimal point. | ||
- | ===== Write data into csv files ===== | + | ==== Write data into csv files ==== |
Create some sample data | Create some sample data | ||
< | < |
print_hundredths.txt · Last modified: 2023/02/14 23:26 by raju