javascript fixed precision
snippet in html

javascript fixed precision

user1931

<script type="text/javascript"> 
    var test=213.73145; 
    document.write(test.toFixed(3));           
</script> 

<!-- output 214.731-->