Comments (11)
I π both π
from numbro.
maybe introducing a formatCurrencyWithCents
could be a thing too π
from numbro.
any progress?
from numbro.
Yes, I've prepared myself mentally for this task πΈ
Please give me few more days, I've been extremely busy this week.
from numbro.
ok π it was just to know, no worry π
from numbro.
Sorry to be pushy, but any news here? (it's just that I am super curious to read your implementation π )
from numbro.
@lukaszkrawczyk any progress?
from numbro.
I guess sames thing is for ru-RU
and ru-UA
.
In Russia there are two often used $ symbols:
- Shortened version of rubles: `100 ΡΡΠ±.'
- Official symbol: `100 β½'
Same in Ukraine:
- Shortened version: `100 Π³ΡΠ½.'
- Official symbol: `100 β΄'
Besides, in some cases users may want to display ISO 4217 code:
100 RUB
100 UAH
Just for the note, symbols and shortened versions in Russia and Ukraine do not depend on number in any way, it's always same.
Maybe we can have somehow more flexible way to configure possible formats for different languages?
from numbro.
Hello!
I would be happy if custom culture settings can be passed to format
methods directly and they override current settings. It will allow to control which currency symbol should be used by hand at least.
from numbro.
sounds like a good idea π I think moment has a similar feature
from numbro.
Here is something more to consider http://www.gnu.org/software/libc/manual/html_node/Locale-Names.html#Locale-Names:
Most locale names follow XPG syntax and consist of up to four parts:
language[_territory[.codeset]][@modifier]
For example, the locale name βde_AT.iso885915@euroβ denotes a German-language locale for use in Austria, using the ISO-8859-15 (Latin-9) character set, and with the Euro as the currency symbol.
GNU locales have @modifier
part. To be honest, not sure does Microsoft's culture
has modifiers too or not, but it seems to be good idea to allow them.
You can see as in example they denote with @modifier
type of currency. We can follow up that convention too, so that we could call different currencies:
Besides, with such helper we would be able to call certain locale
/culture
with not specific to it currency. Like ru-RU@euro
β to call Russian locale with Euros.
from numbro.
Related Issues (20)
- Please add INR(βΉ) to supported currency list HOT 2
- Please support Myanmar currency
- format error HOT 3
- Sustaining leading zero before the decimal point
- Another format for negative currency balance
- Wrong output for clock format
- Setting bound for the fractional part HOT 1
- Please add Venezuela's currecy BolΓvar (VES)
- Please add the Uzbek language.
- totallength: 5 of "5033,599" results in "5033.599999999999"
- Format with abbreviations not work HOT 1
- $0.995 formats to $1.00 but how Not to average
- Formatting for decimal bytes yields "K" in result instead of "k"
- Adding custom languages HOT 3
- Improve the toolchain HOT 1
- Using lowPrecision on Old Format
- How to override the default currency format for en-US?
- format error
- Format string for rounding to nearest integer HOT 1
- BigInt support breaks in 1.10.0 and later + "Support BigInt in the operators (Incomplete NumeralJs issue/feature request #778)"
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 numbro.