User Tools

Site Tools


print_hundredths

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
round_vs._format [2023/02/13 23:05] rajuround_vs._format [2023/02/13 23:07] raju
Line 1: Line 1:
-====== round vs. format ====== +===== round vs. format ===== 
-===== write simple data =====+==== write simple data ====
 <code> <code>
 $ 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
 <code> <code>
print_hundredths.txt · Last modified: 2023/02/14 23:26 by raju