JSFiddle - React, Tailwind, and code Playground
by Roko
JavaScript
var cm = 14*2.55;
var outputCMVal = Math.round(cm*10)/10;
alert(outputCMVal);
var arrDecimal = (outputCMVal+"").split('.');
alert(arrDecimal[1]);
by Roko
var cm = 14*2.55;
var outputCMVal = Math.round(cm*10)/10;
alert(outputCMVal);
var arrDecimal = (outputCMVal+"").split('.');
alert(arrDecimal[1]);