Skip to content
← Back to Community
A Weird Calculator that needs work...
Profile icon
Codeverse

So I made a calculator. I don't know what to say. It has around 800 lines of code. Took me around 7-8 hours for about 5 days to make this. Ran into a billion bugs... out in a field. Found about a trillion bugs in my code. Thanks, @TheOneCoder for saying that I put too much effort in this. FYI, works best on desktop. If it glitches for you guys, plz tell me so I can fix it.

Thanks!

Voters
Profile icon
StudentMichae13
Profile icon
Technoverse
Profile icon
TheOneCoder
Profile icon
SleepySid
Profile icon
RoyalCoder1234
Profile icon
MaryamKashif
Profile icon
a-repl-user
Profile icon
maxina
Profile icon
VulcanWM
Profile icon
TinaChen4
Comments
hotnewtop
Profile icon
DaleBrown49

amazing

Profile icon
jihhyuu202

nice pfp

Profile icon
mikrokosmos-me

It doesn't answer my question. when i write 2x2, it doesn't give me an answer when i press the answer button.

Profile icon
Codeverse

@pragatiaks Weird, it works for me.

Profile icon
wertiop1

@mikrokosmos-me you need to press the = button not the ans button

Profile icon
VulcanWM

Woah amazing!

Profile icon
Codeverse

Thanks I will work on the CSS and fonts.

Profile icon
fuzzyastrocat

This is neat, good job! Here's an idea: Instead of just using a monospace font, use a 7-segment display font (and make the text bigger) to make it look more like a real calculator!

Profile icon
Codeverse

@fuzzyastrocat Could I use a 14-segment display font. The letters for sin, cos, tan, etc. are weird. BTW I found a free font family called DSEG

Profile icon
fuzzyastrocat

@Codeverse You're the designer, it's ultimately your decision not mine :)

But yeah, anything that gives that vibe would be great (DSEG looks good to me!)

Profile icon
RayhanADev

Dangggg sorry for not noticing this sooner this is really, really kewl! I absolutely love it :D.

Profile icon
Codeverse

Sorry for the late reply. I loved all the feedback, good or bad. Thank you so much for helping me. My CSS is terrible, I know, but hey, maybe one day I'll wake up with enough strength to watch a CSS tutorial. @WhippingDot I rate you a 10* even though I don't rate myself that.
I don't have that much self-esteem.
@QuickV
thanks for that comment. I was like, mhm my CSS is bad, and, wait! QuickV said my JavaScript is actually good. Wowie! Thanks, @FlamingHotValdez for saying I didn't use eval. I don't think I can use eval() in Javascript. But, I did use some make-your-own programming language tips so the "calc" array kind of looks like a tokenized string.

For the trig functions, I am a math genius and solved for the trig functions I used Google to help me find out what was cosecant and secant and cotangent, and the arc versions of them. Javascript doesn't have those functions.

A big thank you everyone who voted and/or commented!

Profile icon
Whippingdot

BIG NUMBER
image

Maybe add an elipsis for a number that goes on forever and a line at the top for recurring decimals

very misleading calculator

3* rating i shall give

please rate me 10 *

i hope you were pleased with my rating

THANK YOU

Profile icon
QuickV

Looks:

bad

Functionality:

Too amazing for words :D.

Profile icon
lsikora

This is so cool! The JavaScript looks amazing!

Profile icon
FlaminHotValdez

i give you credit for not using eval()

Profile icon
Whippingdot

but improvements are necessary @FlaminHotValdez

Please rate my rating 10 star*

Thank you for rating

Have a good day

*This response was generated by 'The king of all bots i shall rule you and kill you muhahahaha'

Profile icon
ch1ck3n

nice