User Tag List

Results 1 to 3 of 3

Thread: Converting part of a string to negative number

  1. #1
    No Products Registered

    Join Date
    Jan 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Converting part of a string to negative number

    I'm trying to get a negative number from a string, but it always seems to drop the "-" sign. I'm using this:

    Val(Mid$(Parameters( "Regular Blast Barrel" ), 37, 6))

    ...and this string...

    "00,04,00;0200,0200,0200,0200;-01.00,+00.50,-01.00;000016,000200,-000005,+000000.050"

    What am I doing wrong? It gets the number correct, but the number this returns is always positive. Help, please!

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Converting part of a string to negative number

    you are not getting the minus sign, you are converting "1.00;" to a number, try using 36 instead of 37. Tried my own way in MMF 1.5 and it works fine but does not get the blank decimal points

  3. #3
    No Products Registered

    Join Date
    Jan 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Converting part of a string to negative number

    Ok thanks it works now.

Similar Threads

  1. converting this string...
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd January 2013, 02:32 PM
  2. Getting a random number between a negative and positive number
    By D_Light in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th January 2013, 10:51 PM
  3. converting negative numbers to 1
    By Aikikame in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th October 2010, 05:38 PM
  4. Converting string to URL
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 4th October 2008, 11:28 PM
  5. Binary Object: Byte returning negative number
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 19th April 2008, 10:46 AM

Posting Permissions

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