joshgachnang / diveintopython

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

example 3.2.3 is incorrect #79

Open ebernet opened 9 years ago

ebernet commented 9 years ago

point 2 states: The ".2" modifier of the %f option truncates the value to two decimal places. It actually rounds the value to two decimal places, not truncates.

joshgachnang commented 9 years ago

Good catch!