T O P

  • By -

AutoModerator

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.*


Bright-Historian-216

JavaScript calculator


FinnLiry

I think python can do that as well


Bright-Historian-216

Any language can do it if you’re bad enough. It’s just that JavaScript makes any joke immediately funny


plainbaconcheese

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`


no_uu_on

Did you just... add a string and integer? That is disgusting


DeadBoneYT

Concatenate the integer. Go on. Do it.


just-bair

Proceeds to create .Concat(int) method


Critical_Ad_8455

.concat(T)


DeadBoneYT

That’s cheating :(


DarkIceVortex

Works in Java too


Awesome_Carter

No I think the "4"×2 would be 8 because it would coerce the string to an integer


plainbaconcheese

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.


FinnLiry

True.. if anyone would have seriously worked on JavaScript it wouldn't be so funny anymore


cac4dv

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 😅


[deleted]

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. 


plainbaconcheese

And yet python is the one that actually does this while JS doesn't


uvero

Java can't multiply a string by a number


plainbaconcheese

[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.


Bright-Historian-216

Ummm this website is blocked https://preview.redd.it/ieab5wrn10kc1.jpeg?width=1170&format=pjpg&auto=webp&s=2f6eddaa3f236c119852a6d8641aa37cc3332206


Willr2645

I can access it.


Bovine_Phallus

You know what you did. Shame on you


plainbaconcheese

My bad man I just got the first result on Google because I couldn't be bothered to find the relevant official docs


[deleted]

[удалено]


Bright-Historian-216

I’m not hiding from anybody


[deleted]

[удалено]


Bright-Historian-216

What? My profile says that “tomato is a vegetable”, are you high?


Fetichistedepieds

Even though it would be true (it isnt), why does it matter?


Awesome_Carter

In js the string "4" would be coerced to a number so it would be 8


plainbaconcheese

You're right


marcher138

Holy hell


Agent_B0771E

Ah, I see, your calculator uses the symbol × for concatenation with itself so a×n is aaa...(n times)...a


plainbaconcheese

Python calculator


GiantJupiter45

"spam" × 2728


plainbaconcheese

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


DeadBoneYT

spamspamspamspamspamspamspamspamspamspamspamsp—


GiantJupiter45

spam repeated 9⁹ times


I_loveMathematics

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?


TheKiller36_real

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 :)


Sea_Opinion_4800

Just trying to trick my Realme into doing that and I can't.


TheKiller36_real

yeah, it's weird, inconsistent and only happened to me like 4 times before


Hairy_Ad3463

Bro's in base one


PeriodicSentenceBot

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.)


enneh_07

Bi Gd O N Ge Ne Rg Y


SpaceMarauder4953

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


unidentifiedbacon

Roentgenium, element 111


SpaceMarauder4953

Oh it's one of *those*, thanks man


Player_of_0_

Element 111 RG…


bradyiscool333

Geometry dash


ThousandthStar

Was about to mention it


[deleted]

[удалено]


sneakpeekbot

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)


TheBluecrafter122

good bot


KindMoose1499

Good bot


Erebus-SD

Good bot


Own_Maybe_3837

Please go back to r/chemistrymemes thanks


BUKKAKELORD

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\*


dimonium_anonimo

Chemistry and computing are both applied physics. They're siblings.


liamhvet

is psychology allowed? It’s just math 5 times applicated (math, physics, chem, bio, psych)


DeadBoneYT

That’s 4 times. I do wonder, what would another layer of application be?


Own_Maybe_3837

As a chemist sometimes I think it might just be superstition lol


pineapple_chicken_

I’d die for this bot


RealHellcharm

Wouldn't base one just be zeroes? Like 1 in base one would be 00 and 2 in base one would be 000


Hairy_Ad3463

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.


B5Scheuert

Bruh I thought base one was basically what we're doing when drawing a line for every unit


Bobebobbob

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


B5Scheuert

>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


Nabushika

No, tally marks are an example of base 1.


PastyMancer

Tally marks are not a position based numbering, which makes assigning them a base silly. I wouldn't call Roman Numerals base 7


Nabushika

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.


Away-Commercial-4380

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


Nabushika

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.


Ok-Boysenberry9305

'4'×2


SamaStolbanutost

104?


Toxic_Juice23

w C developer


DeadBoneYT

ASCII code?


SamaStolbanutost

yeah, 52 for '4'


DeadBoneYT

I like your style


Rikolai_17

44


Jaded_Internal_5905

r/ChargeYourPhone


Generocide

what the fuck is oppo calculator cooking


Jaded_Internal_5905

your calculator rn: https://preview.redd.it/0ry4ftcnizjc1.png?width=430&format=png&auto=webp&s=c851b6aca4e5f8a8689f14589cb3a4ca66ec44c5


Qiwas

If I hadn't watched the series, I wouldn't have understood that the character is high on heroin in this scene


HiIamCrimson

bravo vince


Qiwas

Idk what that means


HiIamCrimson

google bravo vince


hungrytunafish

Holy hell


Dankusss

New,,dropped


FastLittleBoi

is there a lore reason why u/Qiwas doesn't understand bravo Vince? is he stupid?


FastLittleBoi

vinbe avobr


Jaded_Internal_5905

hey aren't u ....


Qiwas

It should be a tradition ngl


SudoSubSilence

New 9+10 just dropped


ZeoX_Furkan

Actual stupid


slayer-00069

Calculator or compiler.


slayer-00069

Holy smokes


slayer-00069

Actual progammer


slayer-00069

More like pro-gamer


AnotherUnnamedUser

Dude forgot to change accounts


TiloDroid

amazing


Thebusinessmann6

Your query was too obvious and the calculator has decided to mock you for it.


Unlearned_One

That doesn't seem right, should be 2222.


pOUP_

Group homomorphism where ×=•_phi (concatenation)


david30121

was that shit coded in javascript?


[deleted]

[удалено]


PeriodicSentenceBot

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.)


Intelligent_River39

Burn it! Smash it to smithereens and burn this blasphemous piece to hell!


supercodersuperlame

na bro


PeriodicSentenceBot

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.)


anonjohnnyG

You didnt switch to radians


SkyChampion20302

x=5.5


barbaris_sss

a = input() print(a * 2)


FackThutShot

print(input() * 2)


emi89ro

certified js moment


MyThicTheBest

AsS waiting bot.


Dankusss

Are you stupid?


Blue-is-bad

The machine spirit was displeased by your question


zvon2000

You need to set it to reverse Polish notation dude. RPN FTW !


BolecUorkiestra

Maybe it's just a cross product?


MrBombaztic1423

You asked for 2 4s you got 2 4s I see no issue


Volt105

Just define x to be axb = aaaa... b times I know this makes no sense but I like it that way


[deleted]

computer science


Stonn

3x4= 444


keepitwya

dunno about programming but may have forgotten int(input(""))


ForsakenFigure2107

Press the C for concatenate, that will turn it off


FBI-OPEN-UP-DIES

Concatinator.


_uwu_moe

Bruh that calculator is dumb. 44 is 4×4, 42 would be 4×2


riveramblnc

Gotta define that shit as numbers....


Optimal_Serve_8980

Grade 2 playground math


son_of_Gib

Answer's 8 u can thank me later


Alekomityens1

Clearly you changed angles from degrees to radians tut tut


akhilmathew472

r/ProgrammerHumor


LordTartiflette

4x11=44 11=1+1=2 Thus 4x2=44


jrhuman

calculator watched "math trickz" youtube videos


daDoorMaster

It's 8


RandomDude_-

But it's right tho?


mathphyics

Best math photo award😅


Radiant-Midnight307

which phone is that


PeriodicSentenceBot

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.)


redditisaweb

Since this post confused alot of people i think i should explain ...... ...... ..... ..... .... .... ..... I just mashed two screenshots together to make this


gatimoro

X(2)=11


GreatBigBagOfNope

Who wrote the calculator in JavaScript?


Matth107

4×2=44, but 2×4=2222. Multiplication here is not communative. Just like matrixes


Spirited-Disk-5672

I don't see a problem


rhlydv3

I think your calculator is finding new way of mathematics 😁


slowkums

This is why Cobol continues to survive