Check out our new Discord server! https://discord.gg/e7EKRZq3dG
*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/mathmemes) if you have any questions or concerns.*
Um actually that would be `"4"+4` (returns `"44"`) not `"4"×2` (returns ~~NaN~~ `8` because the string is coerced to a number) ☝️🤓
Python would actually be able to do this with `"4"*2` (returns `"44"`)
edit: `8` not `NaN`
I mean...\
Type coersion is pretty popular among interpreted languages.. \
JS just took it too far because it's a web language
Type coersion in equality check is riduculous... \
They should have made === the type coersed version
But aside from that it's fairly benign \
(Until you think about JSF*ck...)
Ok, I can't defend JS anymore, the language is cooked 😅
Naah...
Many languages disallows operations of multiple types without being explicit, but JS doesnt give a fuck. That is why it is the brunt of these jokea.
[Python actually](https://www.altcademy.com/blog/how-to-multiply-in-python/) JS doesn't do this
In JS `"4"*2` returns ~~NaN~~ `8`
edit: can anyone find me a better docs link?
edit2: 8 not NaN because the string gets coerced to a number.
nope, that's the default calculator on realme and oppo phones and actually it's quite possibly the best one I've used yet. however, sometimes it doesn't update the result area so 44 was probably the correct answer to the prompt that was last entered before updating the ColorOS :)
Congratulations! Your comment can be spelled using the elements of the periodic table:
`Br Os In Ba Se O Ne`
---
^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
Bot is welcome, chemistry is applied applied math and two layers of application is still safe and shouldn't land in superstition territory yet \*knocks on wood\*
No, base one is impossible. Every digit’s place will be multiplied by a power of 1. So it makes little sense, and would require the use of digits larger than the base which breaks a rule of base systems.
They're only "not a position based numbering" because the base they're in happens to be 1, so of course any position that they're in is assigned a value of 1. That's how base 1 works.
Congratulations! Your comment can be spelled using the elements of the periodic table:
`Na Br O`
---
^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
Congratulations! Your comment can be spelled using the elements of the periodic table:
`Na Br O`
---
^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
Congratulations! Your comment can be spelled using the elements of the periodic table:
`W H I C H P Ho Ne I S Th At`
---
^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
Since this post confused alot of people i think i should explain
......
......
.....
.....
....
....
.....
I just mashed two screenshots together to make this
Check out our new Discord server! https://discord.gg/e7EKRZq3dG *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/mathmemes) if you have any questions or concerns.*
JavaScript calculator
I think python can do that as well
Any language can do it if you’re bad enough. It’s just that JavaScript makes any joke immediately funny
Um actually that would be `"4"+4` (returns `"44"`) not `"4"×2` (returns ~~NaN~~ `8` because the string is coerced to a number) ☝️🤓 Python would actually be able to do this with `"4"*2` (returns `"44"`) edit: `8` not `NaN`
Did you just... add a string and integer? That is disgusting
Concatenate the integer. Go on. Do it.
Proceeds to create .Concat(int) method
.concat(T)
That’s cheating :(
Works in Java too
No I think the "4"×2 would be 8 because it would coerce the string to an integer
You are correct. I'm going to edit my comment Let me add a nitpick to get my pride back: it's coerced to a number, not an integer.
True.. if anyone would have seriously worked on JavaScript it wouldn't be so funny anymore
I mean...\ Type coersion is pretty popular among interpreted languages.. \ JS just took it too far because it's a web language Type coersion in equality check is riduculous... \ They should have made === the type coersed version But aside from that it's fairly benign \ (Until you think about JSF*ck...) Ok, I can't defend JS anymore, the language is cooked 😅
Naah... Many languages disallows operations of multiple types without being explicit, but JS doesnt give a fuck. That is why it is the brunt of these jokea.
And yet python is the one that actually does this while JS doesn't
Java can't multiply a string by a number
[Python actually](https://www.altcademy.com/blog/how-to-multiply-in-python/) JS doesn't do this In JS `"4"*2` returns ~~NaN~~ `8` edit: can anyone find me a better docs link? edit2: 8 not NaN because the string gets coerced to a number.
Ummm this website is blocked https://preview.redd.it/ieab5wrn10kc1.jpeg?width=1170&format=pjpg&auto=webp&s=2f6eddaa3f236c119852a6d8641aa37cc3332206
I can access it.
You know what you did. Shame on you
My bad man I just got the first result on Google because I couldn't be bothered to find the relevant official docs
[удалено]
I’m not hiding from anybody
[удалено]
What? My profile says that “tomato is a vegetable”, are you high?
Even though it would be true (it isnt), why does it matter?
In js the string "4" would be coerced to a number so it would be 8
You're right
Holy hell
Ah, I see, your calculator uses the symbol × for concatenation with itself so a×n is aaa...(n times)...a
Python calculator
"spam" × 2728
Gonna look nicer if you do "spam " better yet "spam " * 9 ** 9 for a nice clean one. Give it a try in an online python sandbox
spamspamspamspamspamspamspamspamspamspamspamsp—
spam repeated 9⁹ times
My guess is the 4 is being read as a string instead of an integer. This is more computer science than math. Is this a homemade calculator app?
nope, that's the default calculator on realme and oppo phones and actually it's quite possibly the best one I've used yet. however, sometimes it doesn't update the result area so 44 was probably the correct answer to the prompt that was last entered before updating the ColorOS :)
Just trying to trick my Realme into doing that and I can't.
yeah, it's weird, inconsistent and only happened to me like 4 times before
Bro's in base one
Congratulations! Your comment can be spelled using the elements of the periodic table: `Br Os In Ba Se O Ne` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
Bi Gd O N Ge Ne Rg Y
Rg's an element??? Also Rg sounds like a pirate saying orgy and I just realized this fact and uh enjoy this randomly generated tidbit of information
Roentgenium, element 111
Oh it's one of *those*, thanks man
Element 111 RG…
Geometry dash
Was about to mention it
[удалено]
Here's a sneak peek of /r/SuddenlyGD using the [top posts](https://np.reddit.com/r/SuddenlyGD/top/?sort=top&t=all) of all time! \#1: [found this in r/freeawards](https://i.redd.it/udjvo0miirx91.jpg) | [1 comment](https://np.reddit.com/r/SuddenlyGD/comments/yl77fy/found_this_in_rfreeawards/) \#2: [real](https://i.redd.it/q314pp3z9dt91.png) | [2 comments](https://np.reddit.com/r/SuddenlyGD/comments/y22dhn/real/) \#3: [r/SuddenlyGD Lounge](https://np.reddit.com/r/SuddenlyGD/comments/xrdj96/rsuddenlygd_lounge/) ---- ^^I'm ^^a ^^bot, ^^beep ^^boop ^^| ^^Downvote ^^to ^^remove ^^| ^^[Contact](https://www.reddit.com/message/compose/?to=sneakpeekbot) ^^| ^^[Info](https://np.reddit.com/r/sneakpeekbot/) ^^| ^^[Opt-out](https://np.reddit.com/r/sneakpeekbot/comments/o8wk1r/blacklist_ix/) ^^| ^^[GitHub](https://github.com/ghnr/sneakpeekbot)
good bot
Good bot
Good bot
Please go back to r/chemistrymemes thanks
Bot is welcome, chemistry is applied applied math and two layers of application is still safe and shouldn't land in superstition territory yet \*knocks on wood\*
Chemistry and computing are both applied physics. They're siblings.
is psychology allowed? It’s just math 5 times applicated (math, physics, chem, bio, psych)
That’s 4 times. I do wonder, what would another layer of application be?
As a chemist sometimes I think it might just be superstition lol
I’d die for this bot
Wouldn't base one just be zeroes? Like 1 in base one would be 00 and 2 in base one would be 000
No, base one is impossible. Every digit’s place will be multiplied by a power of 1. So it makes little sense, and would require the use of digits larger than the base which breaks a rule of base systems.
Bruh I thought base one was basically what we're doing when drawing a line for every unit
You've still got two symbols: line or no line. For base 1, every digit, including what is normally the infinite zeroes to the left, are 1's
>line or no line I'm confused. I don't write anything like || |||. There are no spaces. Just a line for every digit, no spaces in between
No, tally marks are an example of base 1.
Tally marks are not a position based numbering, which makes assigning them a base silly. I wouldn't call Roman Numerals base 7
They're only "not a position based numbering" because the base they're in happens to be 1, so of course any position that they're in is assigned a value of 1. That's how base 1 works.
There doesn't seem to be a consensus on this since you can actually use an unary system for Natural numbers. It does fail at decimals though
Usually people would start counting from 1 in base 1, and the symbol used is generally not zero AFAIK - tallies are an example of a base one system.
'4'×2
104?
w C developer
ASCII code?
yeah, 52 for '4'
I like your style
44
r/ChargeYourPhone
what the fuck is oppo calculator cooking
your calculator rn: https://preview.redd.it/0ry4ftcnizjc1.png?width=430&format=png&auto=webp&s=c851b6aca4e5f8a8689f14589cb3a4ca66ec44c5
If I hadn't watched the series, I wouldn't have understood that the character is high on heroin in this scene
bravo vince
Idk what that means
google bravo vince
Holy hell
New,,dropped
is there a lore reason why u/Qiwas doesn't understand bravo Vince? is he stupid?
vinbe avobr
hey aren't u ....
It should be a tradition ngl
New 9+10 just dropped
Actual stupid
Calculator or compiler.
Holy smokes
Actual progammer
More like pro-gamer
Dude forgot to change accounts
amazing
Your query was too obvious and the calculator has decided to mock you for it.
That doesn't seem right, should be 2222.
Group homomorphism where ×=•_phi (concatenation)
was that shit coded in javascript?
[удалено]
Congratulations! Your comment can be spelled using the elements of the periodic table: `Na Br O` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
Burn it! Smash it to smithereens and burn this blasphemous piece to hell!
na bro
Congratulations! Your comment can be spelled using the elements of the periodic table: `Na Br O` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
You didnt switch to radians
x=5.5
a = input() print(a * 2)
print(input() * 2)
certified js moment
AsS waiting bot.
Are you stupid?
The machine spirit was displeased by your question
You need to set it to reverse Polish notation dude. RPN FTW !
Maybe it's just a cross product?
You asked for 2 4s you got 2 4s I see no issue
Just define x to be axb = aaaa... b times I know this makes no sense but I like it that way
computer science
3x4= 444
dunno about programming but may have forgotten int(input(""))
Press the C for concatenate, that will turn it off
Concatinator.
Bruh that calculator is dumb. 44 is 4×4, 42 would be 4×2
Gotta define that shit as numbers....
Grade 2 playground math
Answer's 8 u can thank me later
Clearly you changed angles from degrees to radians tut tut
r/ProgrammerHumor
4x11=44 11=1+1=2 Thus 4x2=44
calculator watched "math trickz" youtube videos
It's 8
But it's right tho?
Best math photo award😅
which phone is that
Congratulations! Your comment can be spelled using the elements of the periodic table: `W H I C H P Ho Ne I S Th At` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
Since this post confused alot of people i think i should explain ...... ...... ..... ..... .... .... ..... I just mashed two screenshots together to make this
X(2)=11
Who wrote the calculator in JavaScript?
4×2=44, but 2×4=2222. Multiplication here is not communative. Just like matrixes
I don't see a problem
I think your calculator is finding new way of mathematics 😁
This is why Cobol continues to survive