js float fixed 2 code example Example: coffeescript float to two decimal places number = 24.54616515.toFixed 2 #24.55