okTurtles / group-income

A decentralized and private (end-to-end encrypted) financial safety net for you and your friends.
https://groupincome.org
GNU Affero General Public License v3.0
329 stars 43 forks source link

Pledges should be displayed in decimal notation #2281

Open dotmacro opened 1 month ago

dotmacro commented 1 month ago

Problem

On testing, regardless of how the user enters a pledge of ".0000002 BTC", after the pledge is saved, the UI displays it as "2e-7".

pledge--scientificNotation

Solution

Pledges should be displayed in decimal notation. Testing didn't uncover other instances of this issue, but all numbers should be displayed in decimal notation. NOTE: The UI allows the user to enter "2e-7" as a pledge. This is not a problem, but it's also OK to require the user to enter a pledge in decimal notation if that's required to solve this issue.