Don't know if this is a bug but I certainly don't like it since I now have to use conditions everywhere...
When I do a query and use the result (getValue) to convert it to a number (stringToNumber) the following happens:
when the queryresult = '1.0': stringToNumber('1.0') = 1.0... OK
when the queryresult = null: stringToNumber(null) =.... 1.0 or -1.0 ?????