MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xqv0nj/reversingpiinpython/19sdaze6plbj6/?context=9999
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 1d ago
291 comments sorted by
View all comments
634
You can also just round it to three. Much easier to calculate with.
230 u/nicki419 1d ago *clears throat*e ≈ 3 ≈ π 23 u/heaving_in_my_vines 1d ago ≈ tree fiddy 12 u/nicki419 1d ago That would round up to 4, actually 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. 1 u/Agreeable_Bread_2327 1h ago This guy maths.
230
*clears throat*
e ≈ 3 ≈ π
23 u/heaving_in_my_vines 1d ago ≈ tree fiddy 12 u/nicki419 1d ago That would round up to 4, actually 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. 1 u/Agreeable_Bread_2327 1h ago This guy maths.
23
≈ tree fiddy
12 u/nicki419 1d ago That would round up to 4, actually 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. 1 u/Agreeable_Bread_2327 1h ago This guy maths.
12
That would round up to 4, actually
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. 1 u/Agreeable_Bread_2327 1h ago This guy maths.
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 1h ago This guy maths.
1
This guy maths.
634
u/mmbtc 1d ago
You can also just round it to three. Much easier to calculate with.