John Hooks
John Hooks
@sarahdayan is this still the title and url you want for this link? https://github.com/dinerojs/dinero.js/blob/80fdc0b2ac7e6971672012552ebf9d2d7f7290a4/website/data/docs/core-concepts/formatting.mdx?plain=1#L81-L82
> @johnhooks I removed the `transformer` from `toSnapshot` and left it for `toUnits` and `toDecimal`. That change works for me. I'm reading though `website/data/docs` and making sure it all looks...
@sarahdayan, another `to-format` reference. I know there are redirects, but do you still want to use the old url? Also `toUnits` doesn't have a `decimal` property? https://github.com/dinerojs/dinero.js/blob/80fdc0b2ac7e6971672012552ebf9d2d7f7290a4/website/data/docs/guides/formatting-non-decimal-currencies.mdx?plain=1#L39-L43
Looks great, I'd say it's ready!
No, I moved on to using different hosting solutions. This can be closed, because obviously it must have just been me.
Good to know it wasn't just me!
I tried to look through this one for you, but its hard to debug the issue without a `Big.js` calculator in the codebase. I could just paste yours in, but...
I found it. I'll take another look.
@bkiac you are 100% on the right track. The solution is to add your own formatter when you use `createDinero`, because the default formatter will not format `Big.js` correctly. ```ts...
> My first problem was that I receive arbitrary precision USD values from an API and I need to calculate the scale of these values. This is how I did...