MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xqv0nj/reversingpiinpython/19sblcw13jfz5/
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 18d ago
383 comments sorted by
View all comments
257
1, there, I did it. It's in base-Ο for efficiency.
64 u/HorrorMotor2051 18d ago pi in base-pi would be 10, no? So backwards it should be 01 54 u/PuzzleheadedRoyal480 18d ago Leading zeroes famously donβt matter 19 u/HorrorMotor2051 18d ago Well it's not a leading zero, it's a trailing zero 12 u/HorrorMotor2051 18d ago Or rather I should say: In this case the leading zero does matter, because 1 is not 10 spelled backwards. It simply is not. 1 is 1 spelled backwards. 01 is 10 spelled backwards. 1 u/TimSylvester_ 18d ago Uh wow, ok, then how do you account for all the zeroes leading the United States these days? 1 u/Nowin 18d ago In 10-adic numbers they do. Adding a leading 0 multiplies everything by 10. 2 u/Yumikoneko 18d ago Yeah I don't know how I missed that, shame on me. In my defense, I was barely out of bed. 6 u/glacierre2 18d ago Came to say this. 5 u/sten_zer 18d ago βπ»ππ»ππ»ππ» 6 u/KaoticKirin 18d ago lmoa
64
pi in base-pi would be 10, no? So backwards it should be 01
54 u/PuzzleheadedRoyal480 18d ago Leading zeroes famously donβt matter 19 u/HorrorMotor2051 18d ago Well it's not a leading zero, it's a trailing zero 12 u/HorrorMotor2051 18d ago Or rather I should say: In this case the leading zero does matter, because 1 is not 10 spelled backwards. It simply is not. 1 is 1 spelled backwards. 01 is 10 spelled backwards. 1 u/TimSylvester_ 18d ago Uh wow, ok, then how do you account for all the zeroes leading the United States these days? 1 u/Nowin 18d ago In 10-adic numbers they do. Adding a leading 0 multiplies everything by 10. 2 u/Yumikoneko 18d ago Yeah I don't know how I missed that, shame on me. In my defense, I was barely out of bed.
54
Leading zeroes famously donβt matter
19 u/HorrorMotor2051 18d ago Well it's not a leading zero, it's a trailing zero 12 u/HorrorMotor2051 18d ago Or rather I should say: In this case the leading zero does matter, because 1 is not 10 spelled backwards. It simply is not. 1 is 1 spelled backwards. 01 is 10 spelled backwards. 1 u/TimSylvester_ 18d ago Uh wow, ok, then how do you account for all the zeroes leading the United States these days? 1 u/Nowin 18d ago In 10-adic numbers they do. Adding a leading 0 multiplies everything by 10.
19
Well it's not a leading zero, it's a trailing zero
12 u/HorrorMotor2051 18d ago Or rather I should say: In this case the leading zero does matter, because 1 is not 10 spelled backwards. It simply is not. 1 is 1 spelled backwards. 01 is 10 spelled backwards.
12
Or rather I should say: In this case the leading zero does matter, because 1 is not 10 spelled backwards. It simply is not. 1 is 1 spelled backwards. 01 is 10 spelled backwards.
1
Uh wow, ok, then how do you account for all the zeroes leading the United States these days?
In 10-adic numbers they do. Adding a leading 0 multiplies everything by 10.
2
Yeah I don't know how I missed that, shame on me. In my defense, I was barely out of bed.
6
Came to say this.
5
βπ»ππ»ππ»ππ»
lmoa
View all comments
257
u/Yumikoneko 18d ago
1, there, I did it. It's in base-Ο for efficiency.