- My value is 13652.598 , i want 2 and 5 from the value.
- I have tried as below but taking from 1, below is my code
main_value=13652.598
arr = main_value.toString().split(".");
var firstvalue=arr['0'].substring(1,-2);
var secoundtvalue=arr['1'].substring(1,-1);
Expected firstvalue is 2 and expected secondvalue is 5.