A little study and learning shows:
Line 21 of the .htm file has the round function, which rounds the val number to p decimals.
The function is called from 3 locations, line 52, 152, and 156, where p = 2, or p=2, or for angles, p=1.
I inserted the hard code "p+=2;" in Line 21, which raises decimals to 4, or 4, or for angles, 3decimals.
Test modification of line 21 of .htm file: function round(val, p) { p+=2; return Math.round(val*Math.pow(10, p))/Math.pow(10,p) }
I believe another user input could be added, for the desired decimals. But should 3 different user inputs be added, including one for angles?
Maybe 3 default values would be needed too?
I am not going to mess with Max's superb code :-)
- Brian
|