Learn Courses My Dashboard

Trying to show a int value in a text element but only getting rounded result

Hello! I am trying to show an int value in a text element but only getting a rounded result. I want it to display 8.25 but it is only showing 8. Thank you!

Try Double instead of Int

1 Like

Your “8.25” is not an Integer and thus it is not rounded in your project. It is shown as an Integer. You need to use the correct data type, for example Double.

1 Like