const toFixed = ( dight, bits = 3 ) => { return Math.round( dight * Math.pow( 10, bits ) ) / Math.pow( 10, bits ) } export default { toFixed }