console log with input and output

need to limit the amount of decimls after the numbers unsing .tofixed()