Closed robinsandborg closed 4 years ago
Suffix is not a part of the options if you look at the function. Not a bug. Will change type
I think we might look into removing the accounting dependency. This is pretty simple formatting.
@robinsandborg could you create a spec?
Leaning towards built in features like Intl.NumberFormat
or Number.prototype.toLocaleString
. Thoughts?
formatNumber
and formatMoney
landed in https://github.com/staccx/bento/commit/0dcb3d601a0bf0ce3eda9d7ea533a6694de79218
The problem
The documentation for formatCurrency is not in line with the expected output. Not sure if the problem is with the documentation or the function.
Environment
Code To Reproduce Issue
The documentation provides this code:
The ouput from this is
kr100 000
from the code example I would expectkr 100 000,-
Please share relevant sample code. Or better yet, provide a link to a minimal reproducible example.