<script type="text/javascript"> var value = 1.1111; var result = Math.round(value * 100)/100; alert(result); </script>