If arg is a floating value, returns arg, otherwise converts arg to floating and returns the converted value.