Comments (4)
Which differences do you see?
The basic source is indeed from Wikipedia. I did a cross check and there seems to be a couple of differences and see the following points:
- The colón (SVC) is on the list of ISO, but the colón was the currency of El Salvador between 1892 and 2001. Apparently it is never been officially removed after amendment 115.
- Zimbabwe Dollar (ZWL) is also on the list of ISO, but is not used since 2009. This is apparently also still on the ISO list and it looks like it is also not officially been removed.
- USS (998) is removed from the list of ISO and also shown in amendment 158, but Wikipedia still has it :-(.
Going to do some checks on these and change Wikipedia and NodaMoney.
from nodamoney.
I'm worried about the EnglishName. I didn't expect there to be so many differences. For example: USD
Wikipedia: United States dollar
currency-iso.org: US Dollar
I'm tempted to believe that currency-iso.org is closer to the ISO standard than Wikipedia but hell who knows...
from nodamoney.
It's a bit unfortunate that CurrencyBuilder
requires a currency symbol. That's the only thing stopping me from using the XML that currency-iso.org provides instead of the built-in currencies.
I wouldn't mind if Money.ToString
would format money using the ISO code instead of the currency symbol if no symbol was specified. In fact, why is this not a feature even when symbols are available?
from nodamoney.
The Unicode CLDR is a frequently-recommended source for such information. It is used by many "big name" companies, is well maintained and importantly also includes the information necessary for culture-dependent formatting of currency amounts (e.g. if I'm formatting USD in Sweden I'd expect to see "USD 123,45" rather than "$123.45" which is what I'd see if I were in the US).
Client-side libraries like Globalize are built on the CLDR data and offer these more general formatting options.
On the server side, there doesn't really seem to be anything comparable for .NET. In my case I'm looking for a way to format currencies on the server side (e.g. for sending notification emails with a price in them) using the same CLDR source data as I use on the client.
Anyway, I just thought I'd share my opinion, although I imagine it would represent a considerable amount of work to change things to use the CLDR.
As a side note, I found what appears to be some more out-of-date info in this project w.r.t. the CLDR at least: RSD no longer has fractional units, neither does COP.
from nodamoney.
Related Issues (20)
- Fix for rounded value in ExchangeRate HOT 1
- Taxed money type HOT 1
- Newtonsoft Json serialization of default(Money) fails HOT 5
- Provide ExchangeRate JsonConverter out-of-the-box
- Addition/Subtraction with default(Money) should not throw InvalidCurrencyException HOT 1
- Serializing default Money property in a class (PR#70) HOT 6
- sample code doesn't work
- System.ArgumentOutOfRangeException when printing certain currencies
- Failing Tests - GivenIWantToParseImplicitCurrency HOT 2
- Money.ToString() fails for all currency with NotApplicable (-1) decimal places
- Reduce dependency on CultureInfo.Current and Thread Current culture.
- Why Currency is a struct, not class? HOT 3
- Money constructor with default currency rounds amount HOT 2
- Currency code should be Enum, not a struct HOT 1
- Does NodaMoney run on Mono? What Dependencies are needed?
- Why a dependency on Newtonsoft.Json
- Does not have a strong name
- ExchangeRate how to? HOT 1
- Currency malformed on deserialization HOT 2
- Disable implicit conversion of decimal to money as static configuration option HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodamoney.