joshgachnang / diveintopython

A mirror of diveintopython.org.
157 stars 48 forks source link

%.2f does not truncate the decimal but approximates it. #112

Open akhileshvg opened 6 years ago

akhileshvg commented 6 years ago

In Section 3.23 - Formatting Numbers, The point number 2 mentions that the .2 modifier on a decimal value truncates the decimal value to two decimal points. But I think the word "truncate" is misleading. I think the word "approximates" is proper one.