Aharonla / Tea-Presale-Front

0 stars 0 forks source link

Fix conversion imprecision #53

Closed Aharonla closed 5 months ago

Aharonla commented 5 months ago

When entering a value in $TEA, the $USD calculation sometime adds a dangling imprecision. For example, at a price of 0.07, an input of 10 $TEA results in 0.7000000000000001 $USDC (Should be 0.7). This goes for other values as well (5 $TEA -> 0.35000000000000003 $USDC, 7000 $TEA -> 490.00000000000006 $USDC, etc.), and for the reverse conversion (140000000 $USDC -> 1999999999.9999998 $TEA etc.).

Aharonla commented 5 months ago

@SorooshDeveloper Issue hasn't been solved. See screenshots: צילום מסך 2024-04-07 123521 צילום מסך 2024-04-07 123612 צילום מסך 2024-04-07 123738 צילום מסך 2024-04-07 123815