I can't do my calculator

I am working on my calculator project and I have 13/16 tests passing but I have no idea what to do on these last three. It seems way beyond my skill level.

Code

Live page

If anyone can help me I would appreciate it so much! I have been stuck for so long and I have no clue what I can even try and do to solve the last three tests. I feel helpless.

@camperextraordinaire Thank you! That is the one I have been looking at. I am looking back on regex’s as they are very hard but I will look into it! Thanks again! :smile:

Alright, I have been working on it and I have gotten less tests passing but I think I might be going somewhere. Are the additions to my code good or bad?

Code
Live Page

I feel like what I have added should work. Now all it does is DUPLICATE decimals. Test # 12. Also the clearing test #7 and #8 are the same test but both are not working even though the clear button clears everything. I don’t know what is going on anymore and I am really frustrated and doubting my skills.