Syntax fixes to the difference between using unit and float64 function