JSFiddle - React, Tailwind, and code Playground by Robert N. February 21, 2016 JavaScript var num=1/6; alert((Math.floor(1000*num)/1000).toFixed(3)*6);