Yes, four Float32
s.
You can use Cthulhu.@descend
to look at the typed Julia code, LLVM IR, and assembly.
Int
s are for things like indexing arrays, not numerical computation IMO.
The integer has to be converted to a floating point number first before getting the root, anyway. It must also be converted before operating on it with other floating point numbers.
Other possible issues are things like overflow: The speed of light is an integer. Why should we care?