shopspring/decimal
View on GitHub ↗ ★ 7,515 Go
Arbitrary-precision fixed-point decimal numbers in Go
4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2021-09-14 · latest 2023-06-28
20082026
-
…language for financial tasks. 1) https://learn.microsoft.com/en-us/dotnet/api/system.decimal 2) https://github.com/shopspring/decimal https://www.npmjs.com/package/ts-money
comment by SideburnsOfDoom · 2023-06-28 · in Fintech engineering mistakes (2022) -
…8) SQL - Yes. But check your dialect. 9) PHP - No. 10) Go - No. (Use https://pkg.go.dev/github.com/shopspring/decimal)
comment by AndrewDucker · 2023-03-05 · in COBOL: Thinking about it wrong -
…is an example of a good quality fixed point math library and shows you how it is done. https://pkg.go.dev/github.com/shopspring/decimal?utm_source=...
comment by Yaa101 · 2022-12-22 · in NTSC encoding/decoding in C89 using only integers and fixed point math -
…pattern is to actually deal with the error" How would you deal with NewFromString? https://pkg.go.dev/github.com/shopspring/decimal#NewFromStri... Try different strings? Maybe run through some AI code to figure out what the string really…
comment by eweise · 2021-09-14 · in Go’ing Insane: Endless Error Handling