News for hackers. Stuff that matters.
Re:How to Send a Swift Wire for Developers by RedShift1 on Monday September 16, 2024 @03:12AM (#41553532)
That seems super dumb indeed. I really wish JSON had an actual decimal type, we already have valid "e" notation (like 10e2), why not have a "d" notation, like 5d3 (meaning 5.3) or 5.3d.
Re:How to Send a Swift Wire for Developers by wiktor-k on Monday September 16, 2024 @04:25AM (#41553938)
Re:How to Send a Swift Wire for Developers by svapnil on Monday September 16, 2024 @10:52AM (#41556711)
All amounts in this library are in base units (whole numbers) and no arithmetic is used!

For financial calculations I recommend using Dinero.js

Re:How to Send a Swift Wire for Developers by RedShift1 on Monday September 16, 2024 @11:53AM (#41557336)
So 1 euro is written as 100?