SO - 28562176 - decimal number show
.toFixed(n)
by codeSpy
HTML
<input type="number" id="inputTextbox" />
JavaScript
//alert(10.1000.toFixed(3));
inputTextbox.onblur = function(){
ShowNumber(this.value);
};
function ShowNumber(num){
var decimalNumLength = num.split('.')[1].length;
alert(Number(num).toFixed(decimalNumLength));
}