stochastic-round Install it: npm install stochastic-round -g Use it: const stochR = require('stochastic-round').stochasticRound console.log(stockR(6.53)) You can use it in the command line just make sure you install globally. Use: stockRound <number>