Skip to content

Do not use comma as thousands separator - #379

Merged
gavinandresen merged 1 commit into
bitcoin:masterfrom
gavinandresen:nocommas
Jul 5, 2011
Merged

gavinandresen merged 1 commit into
bitcoin:masterfrom
gavinandresen:nocommas

Conversation

@gavinandresen

Copy link
Copy Markdown
Contributor

Using the comma as thousands separator causes problems for parts of the world
where comma == decimal point. Germans sending 0,001 bitcoins are unpleasantly
surprised when that results in 1 BTC getting sent.

Using the comma as thousands separator causes problems for parts of the world
where comma == decimal point.  Germans sending 0,001 bitcoins are unpleasantly
surprised when that results in 1 BTC getting sent.
@sgimenez

sgimenez commented Jul 4, 2011

Copy link
Copy Markdown
Contributor

There is also an overflow problem with ParseMoney.
Maybe this should be fixed in the same time.

"10000000000"   -> Parse and Format -> "10,000,000,000.00"  (ok)
"100000000000"  -> Parse and Format -> "-84,467,440,737.09551616" (not ok)
"1000000000000" -> Parse and Format -> "77,662,796,314.5224192" (not ok)

etc.

Of course there is this limit of ~21 MBTC, but I think it's safer to prevent overflows.
Who knows, someone might try to input fictive money amounts.

@jgarzik

jgarzik commented Jul 4, 2011

Copy link
Copy Markdown
Contributor

ACK

Should this be pulled for 0.3.24?

gavinandresen added a commit that referenced this pull request Jul 5, 2011
Do not use comma as thousands separator
@gavinandresen
gavinandresen merged commit 9390431 into bitcoin:master Jul 5, 2011
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Oct 16, 2019
Hardened checkpoint update for v0.6.4 at block 371850
rajarshimaitra pushed a commit to rajarshimaitra/bitcoin that referenced this pull request Aug 5, 2021
node_operations: English, minor adjustments/additions
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants