How to prevent Xano from returning Decimal (12.00) as Integer (12) ?

Options

I work with flutter-flow with strict type.

There are often scenarios where a Decimal-type value (like 12.00) is returned as an Integer (12) by Xano.

Flutter would throw an error "int" not a subtype of "double".

I tried the number_format function in Xano to convert integer to decimal. This converts the number to a String and then I have to convert the String to Double on the client.

To be honest, it seems like unnecessary code gymnastic to solve Xano's limitation.

Any help would be much appreciated.

Tagged:

Answers