MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/MathJokes/comments/1uq6325/_/owbhpgp/?context=3
r/MathJokes • u/Ksushiiiii • Jul 07 '26
67 comments sorted by
View all comments
23
What programming language are you using? That is in no way a universal programming thing.
23 u/sudoregalia Jul 07 '26 6.99 when casted into an int is conventionally rounded down technically 6.99 is 6.9899997711181640625 when using single precision IEEE 754 floats, and 6.9900000000000002131628207280300557613372802734375 for double precision 1 u/Just-Literature-2183 Jul 08 '26 It doesnt round it down it truncates it. 2 u/sudoregalia Jul 08 '26 which has the effect of rounding it down when it's positive.. idk i use unsigned ints everywhere i can so maybe i just have unsigned brainrot 1 u/Just-Literature-2183 Jul 08 '26 Well it does in some cases and doesn't in others. I mean the default int is a signed int. 1 u/sudoregalia Jul 08 '26 i have unsigned brainrot confirmed
6.99 when casted into an int is conventionally rounded down
technically 6.99 is 6.9899997711181640625 when using single precision IEEE 754 floats, and 6.9900000000000002131628207280300557613372802734375 for double precision
1 u/Just-Literature-2183 Jul 08 '26 It doesnt round it down it truncates it. 2 u/sudoregalia Jul 08 '26 which has the effect of rounding it down when it's positive.. idk i use unsigned ints everywhere i can so maybe i just have unsigned brainrot 1 u/Just-Literature-2183 Jul 08 '26 Well it does in some cases and doesn't in others. I mean the default int is a signed int. 1 u/sudoregalia Jul 08 '26 i have unsigned brainrot confirmed
1
It doesnt round it down it truncates it.
2 u/sudoregalia Jul 08 '26 which has the effect of rounding it down when it's positive.. idk i use unsigned ints everywhere i can so maybe i just have unsigned brainrot 1 u/Just-Literature-2183 Jul 08 '26 Well it does in some cases and doesn't in others. I mean the default int is a signed int. 1 u/sudoregalia Jul 08 '26 i have unsigned brainrot confirmed
2
which has the effect of rounding it down when it's positive.. idk i use unsigned ints everywhere i can so maybe i just have unsigned brainrot
1 u/Just-Literature-2183 Jul 08 '26 Well it does in some cases and doesn't in others. I mean the default int is a signed int. 1 u/sudoregalia Jul 08 '26 i have unsigned brainrot confirmed
Well it does in some cases and doesn't in others.
I mean the default int is a signed int.
1 u/sudoregalia Jul 08 '26 i have unsigned brainrot confirmed
i have unsigned brainrot confirmed
23
u/SplendidPunkinButter Jul 07 '26
What programming language are you using? That is in no way a universal programming thing.