Error In Amount error when too many decimals #477

issue sgornick opened this issue on August 24, 2011
  1. sgornick commented at 7:22 PM on August 24, 2011: none

    When trying to send an amount with more than eight decimal places (e.g., 0.123456789 BTC) the user is given the uninformative error message "Error In Amount".

    I don't know that the amount should be rounded or truncated, so it is probably correct behavior to reject the transaction attempt, just that there probably is a better error message to communicate what specifically is the problem.

  2. alexwaters commented at 1:04 PM on August 29, 2011: contributor

    It is the correct behavior, what would you recommend for the message?

  3. sgornick commented at 7:18 AM on August 31, 2011: none

    "Too Many Decimals. Bitcoin values are up to 8 digits after the decimal."

    or something to that effect.

  4. TheBlueMatt commented at 3:41 PM on August 31, 2011: member

    Change ui.cpp:2143 and the relevant original text in all the translations.

  5. laanwj commented at 11:26 AM on February 5, 2012: member

    This is no longer a problem in the new UI, as the input widget makes it impossible to enter extraneous decimals.

    Closing this issue...

  6. laanwj closed this on Feb 5, 2012

  7. ptschip referenced this in commit 8e35c9eaf0 on Apr 26, 2017
  8. ptschip referenced this in commit d1fd7f794e on May 2, 2017
  9. ptschip referenced this in commit 273f084ec7 on May 2, 2017
  10. ptschip referenced this in commit 301ed19c5c on May 3, 2017
  11. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me