var MDI = '39.741679085941385';
var revMDI = "";
I am needing to modify the MDI value by removing the "." and all characters to the right of it.
I've tried this code and I'm getting a mozilla error:
var revMDI = MDI.substr(MDI,0,indexOf(MDI,'.'));
The error I'm getting is:
org.mozilla.javascript.EcmaError: TypeError: Cannot find function substr.
Any help/direction would be appreciated. Thanks.
substr()should be0, notMDI.