toFloat

fun toFloat(): Float

Returns element as Float. For vector types, it will return size of the vector For String type, it will type to be parsed as Float Float elements will be casted to integer

Return

Float integer or 0 if fail to convert element to long.