3 ms·
> We are using Typescript as our main programming language How are you managing financial numbers safely in TS? Any library to ensure its "safe"?
by vineyardmike 5y ago
> We are using Typescript as our main programming language
How are you managing financial numbers safely in TS? Any library to ensure its "safe"?
- stefanheule 5y agoI won't lie, this is not my favorite aspect, but the only way to do it is have numbers be represented as a string (e.g. "10.128") and use a library to manipulate them. The number type unfortunately just does not work.
- vineyardmike 5y agoWould you mind sharing details about this, and your experience? I ask not to challenge you or critique, but i have a deep interest in fintech and love Typescript. The ability to use it for fintech would be great, i just assumed it'd be too clunky to be practical.
- steviedotboston 5y agothat seems ... really really risky