Forum Academy Marketplace Showcase Pricing Features

Decimal problems

Why is it that sometimes bubble will store a value as -17.1699999999999 instead of -17.17?

That’s because it’s running Javascript in the backend. You can format this down to as many decimal places as you need with :format in the property editor

In your opinion would format be a better solution than using “Rounded to”?

Rounded to or ceiling will bring it to a closest integer.
In case you want to display it as a decimal number with only 2 decimal places for instance, I would recommend using :formatted as - because it provides more options.

image