rounding of, limiting or moving comma. JS string in html form.
Hi. Put my calculator here. If you get a too big number, it goes wider than the display. I would like to limit the number of decimals in the answer, to make it fit the display. Any suggestions? There is also a check for operator, in the inp() function. I guess its not the prettiest way of doing it. Would love some feedback on that one too. Thanks for looking. https://code.sololearn.com/WJMT3qoIQunw/