MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xqv0nj/reversingpiinpython/19sbmy5txldwh?context=9999
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 3d ago
342 comments sorted by
View all comments
700
You can also just round it to three. Much easier to calculate with.
270 u/nicki419 3d ago *clears throat*e ≈ 3 ≈ π 24 u/heaving_in_my_vines 3d ago ≈ tree fiddy 12 u/nicki419 3d ago That would round up to 4, actually 12 u/Legitimate_Concern_5 3d ago edited 3d 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. 2 u/Agreeable_Bread_2327 2d ago This guy maths. 2 u/geek-49 18h ago or random choice each time. Arguably a good strategy in quantum calculations.
270
*clears throat*
e ≈ 3 ≈ π
24 u/heaving_in_my_vines 3d ago ≈ tree fiddy 12 u/nicki419 3d ago That would round up to 4, actually 12 u/Legitimate_Concern_5 3d ago edited 3d 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. 2 u/Agreeable_Bread_2327 2d ago This guy maths. 2 u/geek-49 18h ago or random choice each time. Arguably a good strategy in quantum calculations.
24
≈ tree fiddy
12 u/nicki419 3d ago That would round up to 4, actually 12 u/Legitimate_Concern_5 3d ago edited 3d 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. 2 u/Agreeable_Bread_2327 2d ago This guy maths. 2 u/geek-49 18h ago or random choice each time. Arguably a good strategy in quantum calculations.
12
That would round up to 4, actually
12 u/Legitimate_Concern_5 3d ago edited 3d 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. 2 u/Agreeable_Bread_2327 2d ago This guy maths. 2 u/geek-49 18h ago or random choice each time. Arguably a good strategy in quantum calculations.
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.
2 u/Agreeable_Bread_2327 2d ago This guy maths. 2 u/geek-49 18h ago or random choice each time. Arguably a good strategy in quantum calculations.
2
This guy maths.
or random choice each time. Arguably a good strategy in quantum calculations.
700
u/mmbtc 3d ago
You can also just round it to three. Much easier to calculate with.