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/08 17:57] – [csv data] raju | round_vs._format [2023/02/13 23:05] – raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== round vs. format ===== | + | ====== round vs. format |
- | ==== 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. | ||
- | ==== csv data ==== | + | ===== 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