You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have replaced the BTCUSD pair with DOTUSD pair, but as DOT trades around 42 USD at this moment it would be kinda cool to see the decimals as well, I tried to modify the code myself but it seems like there is a lot of use of the integers and simply replacing them with float might not be enough. Is there an easy way to make this change?
The text was updated successfully, but these errors were encountered:
and below of "int price = round(candles[candlesLimit-1].c);" I added: "float FloatPrice = candles[candlesLimit-1].c;"
and then replacing the "//tft.print(formatPrice(price));" with:
gcvt(FloatPrice, 4, buf);
tft.print(buf);
This is a dirty solution as it just keeps all the background calculations and just displays current price with the 2 decimal numbers but its good enough for me :)
Hi, I have replaced the BTCUSD pair with DOTUSD pair, but as DOT trades around 42 USD at this moment it would be kinda cool to see the decimals as well, I tried to modify the code myself but it seems like there is a lot of use of the integers and simply replacing them with float might not be enough. Is there an easy way to make this change?
The text was updated successfully, but these errors were encountered: