Numeral-js: numeral(0.99991).format('0.00') result 1.0

Created on 3 Aug 2018  路  2Comments  路  Source: adamwdraper/Numeral-js

It is right?
numeral(0.99991).format('0.00') result 1.0

How to become
numeral(0.99991).format('0.00') result 0.99
?

Thx

Most helpful comment

numeral(0.99991).format('0.00', Math.floor) => results 0.99

All 2 comments

numeral(0.99991).format('0.00', Math.floor) => results 0.99

Thx
Spasibo, gokhangencer )

Was this page helpful?
0 / 5 - 0 ratings

Related issues

donnyv picture donnyv  路  8Comments

kinguru picture kinguru  路  6Comments

Eric24 picture Eric24  路  8Comments

meafmira picture meafmira  路  8Comments

tony-kerz picture tony-kerz  路  6Comments