Select to view content in your preferred language

Measurement widget digits

558
1
11-05-2012 02:34 PM
DavidAglietti
Deactivated User
Hello,
Does anyone know if it is possible to control the number of digits to the right of the decimal in the measurement widget results?
Thanks,
Ryan
0 Kudos
1 Reply
JanJeske
Deactivated User
For this i think you have to modify your measurement.js in the jsapi.

in thi js search the function _outputResult: inside of this are 2 functions:

.toPrecision(X) for values > 1000000 //default is 9
.toFixed(X) >0 < 1000000 //default is 2

modify X will change the numbers of digits on the right

also you can add variables so that you can change the precision dynamicly from your application
0 Kudos