12-03-2014 06:57 AM
Hello folks
I'm heaving trouble to get a valeu from a string.
I got a code here on the forum to read temperature and pressure (current) and it get's me a 2D string array.
I want to use those values to connect to indicators but I can't connect to them as a string...
What I have is in the following image... I'm getting only integer number from the string.
How can I solve this?
12-03-2014 07:29 AM
I'm guessing you are in Europe? The comma (,) is your decimal separator? Try using "%.;%.5f" as your string format. This will tell the Scan From String to use the decimal point as the separator.
12-03-2014 07:34 AM
EUREKA!
It worked! Thank's alot.
PS: I'm from Brazil
12-03-2014 07:41 AM
mateusutz wrote:
PS: I'm from Brazil
Same rules as Europe, just in in SW Hemisphere. When dealing with anything international, you really have to watch out for those decimal separators.