Decimal Rounding of Baht/Crypto Trading Amount

Modified on Mon, 20 May at 5:22 PM

When trading cryptocurrency on Bitkub Exchangethe smallest decimal that the system can support is 2 positions for THB balance and 8 positions for tokens. Any decimals after that will be rounded down. This is a reason why the asset balance sometimes does not appear as you might expect from your calculation.


Buy order

When a buy order is matched, the system will exchange THB for tokens and deduct a trading fee. Since the tokens received from each buy order can be displayed up to 8 decimals, any fraction starting from the 9th decimal will be rounded down.


Example

Mr. Boonkub placed 1,000 baht to buy ABC tokens at 85.114 baht per token.

  • He calculated and expected to receive = 1000/85.114 = 11.7489484691 tokens.

  • However, since the system allows only 8 decimals for the token balance, he received 11.74894846 tokens from this purchase. 


Sell order

When a sell order is matched, the system will exchange tokens for THB and deduct a trading fee. Since the THB received from each sell order can be displayed up to 2 decimals, any fraction starting from the 3rd decimal will be rounded down.


Example

Mr. Boonkub sold ABC tokens and expected to earn 1,001.567 baht.

  • However, since the system allows only 2 decimals for the THB balance, he received 1,001.56 baht from this sale.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article