float() is a function that converts to float ie a runtime conversion
3:float on the other side is a declaration so the number is compiled as float, no runtime conversion.
The result is the same, but not so the speed.
3:float on the other side is a declaration so the number is compiled as float, no runtime conversion.
The result is the same, but not so the speed.