mongoose-round-number
usage
;;; ;;; console.logm;//output: {num: 0.01, roundNum: 0.01 } m.num += 006;m.roundNum += 006;console.logm;//output: { num: 0.06999999999999999, roundNum: 0.07 }
;;; ;;; console.logm;//output: {num: 0.01, roundNum: 0.01 } m.num += 006;m.roundNum += 006;console.logm;//output: { num: 0.06999999999999999, roundNum: 0.07 }
npm i mongoose-round-number
1
0.0.1
ISC
2.8 kB
4