Search Unity

[How to convert a string to a single in Boo][Need help!!!]

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

  1. flyric123

    flyric123

    Joined:
    May 8, 2011
    Posts:
    13
    Hi, all!
    How can I convert a string to a single in Boo?
    I wanna read some parameters from a file, and all parameters are read in as string. I try the cast(single, string) to convert them to single, but it does not work. How can I do the converting?

    Thanks a lot!
     
  2. KyleStaves

    KyleStaves

    Joined:
    Nov 4, 2009
    Posts:
    821
  3. npsf3000

    npsf3000

    Joined:
    Sep 19, 2010
    Posts:
    3,830
  4. flyric123

    flyric123

    Joined:
    May 8, 2011
    Posts:
    13
    Sorry, something wrong with my net, I thought I did not post successfully at the first time...