Username: Password:

Author Topic: BUG: Inconsistent usage of number formatting  (Read 8496 times)

Offline krixt

  • Rookie
  • *
  • Posts: 38
    • View Profile
BUG: Inconsistent usage of number formatting
« on: July 19, 2017, 12:43:09 PM »
https://github.com/GuntharDeNiro/BTCT/issues/9

Sometimes values are printed as 0.12344001122, sometimes as 5443.2210 (which really should be printed as 0.54432210), sometimes printed as 7.1e-7, sometimes printed as price to buy: 7.679280000000009e-7

It's extremely frustrating to "see" what's going on with the bot when numbers are not formatted consistently.

Please fix the code so that all numbers are formatted properly to the correct number of significant digits.