This is the error message:
The database generated an error while attempting to convert the string `0.8' to an OCINumber, so alternative number parsing was performed. (serverType=`ORACLE8I', serverName=`****', userName=`*******', password=`***', dbname=`')
It doesn't matterhow you cast the number in the sql query.