playMaker

Author Topic: convert string to float issue  (Read 2170 times)

gamedivision

  • Full Member
  • ***
  • Posts: 227
convert string to float issue
« on: September 17, 2016, 09:10:10 PM »
i have a string format timer in the form of min,sec,mill sec 00:00:0 like so, i need to be able to convert to a float so i can compare numbers but im getting a format exception with the separators :
how would i get the string value into a float value

thanks

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: convert string to float issue
« Reply #1 on: September 18, 2016, 05:03:14 AM »
Use get Get String Left/Right and get only the min or sec or whatever and only convert that into float but it is only a quick workaround

I would read this: http://hutonggames.com/playmakerforum/index.php?topic=1711.0

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: convert string to float issue
« Reply #2 on: September 18, 2016, 07:03:53 PM »
thanks i managed to solve it by removing the formatting in the timer script then reformatting in playmaker