Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am trying to convert my float fields to double fields on the tMap for conversion. I am getting the error: cannote invoke doubleValue() on the prmitive type float. Here is what I am writing in the tMap.
row1.HOME.doubleValue()
I am converting big decimals using the same syntax and that seems to be working. Do I need to handle floats differently?
thanks!
Check the schema for row1. I suspect that HOME does not have the "nullable" tick box ticked. This means that it cannot be null and is therefore a primitive type. You need it to be an instance of the Float class. Just tick the "nullable" tick box and that should resolve this.
Double.valueOf(row1.HOME.toString())