โ10-01-2022 03:06 AM
In SQL editor (inside SQL experience), executing expressions 1 โ 0.999 gives the result 0.
โ10-01-2022 03:10 AM
The incorrect result is because of default rounding to format 0.00. We can implement the below solution to solve the problem. It must be applied to every individual query.
Option 1: Edit Visualisation
After clicking Edit visualization, we can change the default Number format to 0.000
Option 2: Format number
We can use the format_number function to override the default rounding format.General solution needed
Setting the default format for numbers in SQL Editor should be possible. Currently, when we go to โSQL Admin Consoleโ, there is only the possibility to change the default date & time format.
@Lindsay Olsonโ @Prabakar Ammeappinโ @Werner Stinckensโ @Jose Gonzalezโ , please pass it on as feedback if possible.
โ10-01-2022 03:10 AM
The incorrect result is because of default rounding to format 0.00. We can implement the below solution to solve the problem. It must be applied to every individual query.
Option 1: Edit Visualisation
After clicking Edit visualization, we can change the default Number format to 0.000
Option 2: Format number
We can use the format_number function to override the default rounding format.General solution needed
Setting the default format for numbers in SQL Editor should be possible. Currently, when we go to โSQL Admin Consoleโ, there is only the possibility to change the default date & time format.
@Lindsay Olsonโ @Prabakar Ammeappinโ @Werner Stinckensโ @Jose Gonzalezโ , please pass it on as feedback if possible.
โ10-01-2022 03:15 AM
โ10-02-2022 11:39 AM
Thank you @Prabakar Ammeappinโ
โ10-04-2022 12:24 AM
Nice find
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now