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 values representing the numbers either side of the
"-".
Alternatively, if the "-" is supposed to be a decimal point (The
number should be 20.20) you can specify that the "-" should be used as
a decimal seperator by using the format command "%-;%f".
Hope this helps.
Shane.