Search Unity

How to convert a string to a float in Boo

Discussion in 'Scripting' started by flyric123, May 23, 2011.

  1. flyric123

    flyric123

    Joined:
    May 8, 2011
    Posts:
    13
    Hi, all,
    How can I covert a string to a single in Boo?
    I want to import some parameters from a file. But all the parameters are strings. How can I convert them to floats?

    Thanks!
     
  2. npsf3000

    npsf3000

    Joined:
    Sep 19, 2010
    Posts:
    3,830
  3. SkaredCreations

    SkaredCreations

    Joined:
    Sep 29, 2010
    Posts:
    296
  4. npsf3000

    npsf3000

    Joined:
    Sep 19, 2010
    Posts:
    3,830
    ohh.. yeah :p