Results 1 to 5 of 5

Thread: String to float?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    If you haven't got libcod, you may try this:

    PHP Code:
    strToFloat(str)
    {
      
    setCvar("temp",str);
      return 
    GetCvarFloat("temp");

    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. The Following User Says Thank You to RobsoN For This Useful Post:

    filthy_freak_ (6th May 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •