Jump to content

micman2

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by micman2

  1. QUOTE(shoneill @ Feb 26 2008, 04:12 PM)

    If you are converting from string, then you need to take the decimal point character into consideration. You seem to have a comma set as the decimal point (3,51 not 3.51), so you need to let your "Scan from string" function know this is being used, not a ".".

    You can do this with "%,;#%05.2f". The %,; tells the interpreter to use the "," as the decimal seperator.

    Shane

    PS Scratch that, it seems that what normandinf says is correct.

    No work :unsure:

  2. Hi all,

    I'm new user.

    I have a simple number that ranges from 0 to 10 with 0.01 accuracy, this issue must send in the serial in the following format 00.00 :

    Example :

    #15.00

    #02.10

    #00.47

    Now when I try to convert in any way the decimal number I have a problem, when a number varies between 4.49 example, I take 4 (ok) but varies 4.51 when I take 5

    Sending screen

    Why?

    post-10885-1204032116.gif?width=400

    post-10885-1204032131.gif?width=400

    Download File:post-10885-1204032162.vi

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.