Hi anyway to convert a string like “3.10” to a float ?
Yes you can do this in Js or in Python inside ob2.
In Js you use the parseFloat() function to convert the string into float value.
Yes, OB2 automatically converts them. Just pass the variable into a Constant Float or Constant Int block and it will automatically convert the value.
1 Like