arkemishub / arke

Arke low code framework Core
https://arkehub.com
Apache License 2.0
23 stars 0 forks source link

[fix] - float filters #31

Open ErikFerrari opened 1 year ago

ErikFerrari commented 1 year ago

If a filter is built with a float and the values does not have the decimal it throws an error. Instead it should work. Below an example of the filter.

----- DOES NOT work ---- filter=and(lte(integer_support,5),lte(float_support,15))

Image

----- work ----- filter=and(lte(integer_support,5),lte(float_support,15.0))

ErikFerrari commented 1 year ago

Better to use Float.parse and Integer.parse insted of String.to_float and String.to_integer. That's because float numbers like "8" are invalid according to String.to_float