Calculator
Here is a little Calculator. Have a wonderfull day!
Nice! I suggest using this:
https://stackoverflow.com/questions/2310734/how-to-make-html-text-unselectable
(on the tile
)
@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?
ReferenceError: 9+9 is not defined
at eval:1:1
at eval
at o.
alert("fak i cant load it")
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.
@MikeW3 I implemented it in https://calculator-fork.mikew3.repl.co/
Drumroll please INTRODUCING MR. 1845
this is my epic number in this calculator
So epic number @codermaster8
If u realize I’m using a tablet @codermaster8
@codermaster8 forgot alt account
What do u mean @AlmightyDeaks
This calculator is good
@codermaster8 Thanks :)
Can you make a fraction calculator and you can add or subtract fractions if you can do that @Costope21
3.14159265359=>Math.pi
3.14159
haha
noice number
@Whippingdot Haha! ;D
3.14159265359
It should be 3.14159265358
I memorized 3.14159265358979323846264
@WilliamXing the nine rounds it to 9 so 3.14159265359 is more accurate because the next digit is 9
But it's wrong @theohalpern
@WilliamXing 3.14159265358 wouldn't be right either
its less wrong, 3.14159265358979323846264 is wrong too @WilliamXing
@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!
Wow! @BobTheTomatoPie votet! (Thanks!)
Nice!
@catspython Thanks :)
@catspython Thanks!
@Costope21 hmm... you said it twice...
@catspython Oops... Sorry... Bad WiFi :(
Just a comment, for each of the numbers, you could add a
cursor:pointer
attribute to make it better. Other that, this is awesome!@AR199 Okie :) Thanks for the tip!