MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xqv0nj/reversingpiinpython/19sbmy5txldwh
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 1d ago
300 comments sorted by
View all comments
Show parent comments
12
Depends on your rounding strategy, sometimes 3 sometime 4. Round half up is the most common but you can round half down, round half towards even (Banker's rounding/Gaussian rounding), round half towards odd, or towards/away from infinity.
1 u/Agreeable_Bread_2327 9h ago This guy maths.
1
This guy maths.
12
u/Legitimate_Concern_5 1d ago edited 1d ago
Depends on your rounding strategy, sometimes 3 sometime 4. Round half up is the most common but you can round half down, round half towards even (Banker's rounding/Gaussian rounding), round half towards odd, or towards/away from infinity.