I’m making a website where it would be nice to have the user see the X-axis and Y-axis of his mouse , and I have that part coded easily with no trouble
, but the problem
is that the
-axis and Y-axis are shown in ugly
, and too long
decimals. Is there a way to force the data to be in integers, or just two decimal digits at least?
Thanks either way,
~Hanzoh Alani