JSFiddle - React, Tailwind, and code Playground

by Robert N.

JavaScript

var num=1/6;
alert((Math.floor(1000*num)/1000).toFixed(3)*6);