currency
icu
Our great sponsors
currency | icu | |
---|---|---|
11 | 15 | |
493 | 2,561 | |
- | 5.7% | |
6.5 | 9.7 | |
9 days ago | 2 days ago | |
Go | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
currency
-
Should golang create a money library on the exp package?
I maintain a decent solution in this problem space: https://github.com/bojanz/currency
-
Lack of Decimal Support
FWIW I think cockroachdb/apd is the best third party option. While building bojanz/currency I've evaluated and benchmarked the others and found them either less maintained, slower, or both.
-
Small Fixed-Point Decimals library
I have a package for handling currency amounts and calculations that is based on cockroachdb/apd, in my opinion the best arbitrary-precision decimal implementation in Go right now. So, I can offer a bit of insight.
-
Golang E-Commerce framework
Yes, MySQL/MariaDB have a decimal column type that should be used. I have an example of that here.
-
cockroachdb/apd v3.0.0
Did some benchmarks for bojanz/currency, after switching it to v3. The performance increase is noticeable.
-
Library recommendation -- money calculations, more accurate handling of floats
I have the change done in a branch, I just need 4.0.0 to be released, but it's been a long wait (I opened https://github.com/bojanz/currency/issues/1 in May of 2020).
-
Help with e-commerce project
https://github.com/bojanz/currency https://github.com/bojanz/address
- currency - Currency amounts and formatting for Go
-
Ideal way to represent currency in Go
I have a package and a blog post for you: https://github.com/bojanz/currency https://bojanz.github.io/price-currency-handling-go/
icu
- FreeBSD replaces bubblesort with mergesort on SYSINTs, results in 100x speed
-
Get wide characters one by one from a char * string
If you want graphemes, something lile libgrapheme might suit you. If just code points, then the utf8.h from ICU can work, but you can also roll your own if needed.
- Fatal error when I'm trying to build SQLite for Android with ICU enabled
-
Should golang create a money library on the exp package?
OP, is this money in the context of storing and counting money, or money in the context of internationalization and localization? For the latter, you probably want bindings to icu or the x/text/currency package.
-
Setting the TZ environment variable avoids thousands of system calls
https://github.com/unicode-org/icu/pull/2213
This affects all packages that have icu as a dependency, one of them being Node.js.
https://github.com/nodejs/node/issues/37271
I discovered this the hard way when some code malfunctioned shortly after daylight savings time kicked in.
-
PSA: Node 18.13+ changed date/time formatting
No clue! It seems like a very deep rabbit hole to go down. You can start here: https://github.com/unicode-org/icu Version 72 I believe is when this was changed.
-
Charlock_holmes installation error, Windows 11.
Installing icu4c from https://github.com/unicode-org/icu/releases/tag/release-71-1 and put the path in "--with-icu-lib"
-
libicui18n.so.58: cannot open shared object file
wget https://github.com/unicode-org/icu/archive/release-58-3.tar.gz
-
How to cout a non-ASCII character within a non-ASCII string
You need something like icu. https://github.com/unicode-org/icu
-
Me in the middle of a french conversation, when I forgot what gender a certain word is.
ICU, which ships as part of the core internationalization and localization frameworks of every major operating system, has a facility for transliterating keyboards! This is how you can type in Roman characters and get Devanagari in text, or enter pinyin and get Han characters. You can compose a Hiragana to Latin transliteration — but it’s a stretch to get actual English words this way.
What are some alternatives?
decimal - Arbitrary-precision fixed-point decimal numbers in Go
utfcpp - UTF-8 with C++ in a Portable Way
apd - Arbitrary-precision decimals for Go
harfbuzz - HarfBuzz text shaping engine
Flamingo Commerce - Flexible E-Commerce Framework on top of Flamingo. Used to build E-Commerce "Portals" and connect it with the help of individual Adapters to other services.
apertium-tha - Apertium linguistic data for Thai
address - Address handling for Go.
manticoresearch - Easy to use open source fast database for search | Good alternative to Elasticsearch now | Drop-in replacement for E in the ELK soon
Medusa - Building blocks for digital commerce
MacOSX-SDKs - A collection of those pesky SDK folders: MacOSX10.1.5.sdk thru MacOSX11.3.sdk
decimal - A high-performance, arbitrary-precision, floating-point decimal library.
binwalk - Firmware Analysis Tool