scan from string / minus

2004-04-20 Thread Mc
hi all i try to scan a string which contains strings as: "20-20". So i've tried many options %f... but each time LabView returns "20"... How doing this ?? Thanx for answers Matt

Re: scan from string / minus

2004-04-20 Thread shoneill
This is the correct answer. %f interprets only numbers and either "," or "." depending on what your system uses as a decimal seperator. If you want both numbers, you need to use a format specifier of %f-%f which tells the function to get two numbers seperated by a "-". This will return two value