Calculated Value not matching field type Number

I think, the data hook does not show messages in console log, any other way to ‘step-through’ the code to find datatype? Any way to ‘force’ the calculation to generate datatype ‘Number’?