How to convert string values like '2 263.32'
, '592.06'
to float numbers (f64
) in V-language?
CodePudding user response:
Try '592.06'.f64()
. I don't think having a whitespace in the number will work currently but you can use underscore instead: '2_263.32'.f64()