Skip to content
← Back to Community
Calculator
Profile icon
Costope21

Here is a little Calculator. Have a wonderfull day!

Voters
Profile icon
brilliantskw536
Profile icon
Costope21
Profile icon
dplakon
Profile icon
Karan2011
Profile icon
DarkOrchid
Profile icon
vampchinese
Profile icon
SeaIT
Profile icon
Iamfrench
Profile icon
MattDESTROYER
Profile icon
gozie11
Comments
hotnewtop
Profile icon
AR199

Just a comment, for each of the numbers, you could add a cursor:pointer attribute to make it better. Other that, this is awesome!

Profile icon
Costope21

@AR199 Okie :) Thanks for the tip!

Profile icon
ZarmDev
Profile icon
Costope21

@ZarmDev I don't understand it...

Profile icon
ZarmDev

@Costope21 .unselectable { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
So you can't select the text?

Profile icon
KSHAUNISHSINGH
Profile icon
nbash

ReferenceError: 9+9 is not defined
at eval:1:1
at eval
at o.

Profile icon
NM29


alert("fak i cant load it")

Profile icon
MikeW3

instead of
onclick="document.calc.txt.value = eval(calc.txt.value)"
how about
onclick="try{document.calc.txt.value = eval(calc.txt.value)}catch{alert('Error')}"
Then it alerts the user of an error instead of just logging it to the console.

Profile icon
MikeW3
Profile icon
MikeW3

@MikeW3 Wait No,
onclick="try{if (eval(calc.txt.value) != undefined){document.calc.txt.value = eval(calc.txt.value)}}catch{alert('Error')}"
is the better implementation, because it also fixes the bug where if you evaluate nothing it returns undefined

Profile icon
codermaster8

1000+4000=my chicken nuggets

GET IT

  • CHICKEN NUGGET

🤪 HAHAHAHAHAH

Profile icon
Costope21
Profile icon
elbury

5249718325403.141592653593.141592653593.14159265359

Profile icon
Costope21
Profile icon
codermaster8

Drumroll please INTRODUCING MR. 1845
47F302E7-3CEB-4F5C-AD90-0828A55EDFE5

Profile icon
codermaster8

4AF42167-3AE3-4E45-B8E1-3D7F719BCB8E this is my epic number in this calculator

Profile icon
codermaster8

So epic number @codermaster8

Profile icon
codermaster8

If u realize I’m using a tablet @codermaster8

Profile icon
AlmightyDeaks

@codermaster8 forgot alt account

Profile icon
codermaster8

What do u mean @AlmightyDeaks

Profile icon
codermaster8

This calculator is good

Profile icon
Costope21

@codermaster8 Thanks :)

Profile icon
codermaster8

Can you make a fraction calculator and you can add or subtract fractions if you can do that @Costope21

Profile icon
donggeun1010

3.14159265359=>Math.pi

Profile icon
Snowy1011

Ok

Profile icon
icelite

3.14159
haha

Profile icon
Whippingdot

noice number
image

Profile icon
Costope21

@Whippingdot Haha! ;D

Profile icon
CandySuperCool

3.14159265359

It should be 3.14159265358
I memorized 3.14159265358979323846264

Profile icon
TheoHal

@WilliamXing the nine rounds it to 9 so 3.14159265359 is more accurate because the next digit is 9

Profile icon
CandySuperCool

But it's wrong @theohalpern

Profile icon
LeoXu2

@WilliamXing 3.14159265358 wouldn't be right either

Profile icon
TheoHal

its less wrong, 3.14159265358979323846264 is wrong too @WilliamXing

Profile icon
catspython

@WilliamXing Well, in your memorization, right after the 8 that "shouldn't be a 9" there's a 9, so to include as much as they can in only 12 digits, Costope21 (or whoever they got pi from) rounded the 8 to a 9!

Profile icon
Costope21

Wow! @BobTheTomatoPie votet! (Thanks!)

Profile icon
catspython

Nice!

Profile icon
Costope21

@catspython Thanks :)

Profile icon
Costope21

@catspython Thanks!

Profile icon
catspython

@Costope21 hmm... you said it twice...

Profile icon
Costope21

@catspython Oops... Sorry... Bad WiFi :(

Profile icon
Hund21

Nice! I like it! :)

Profile icon
Costope21

@Hund21 Thanks :)