Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Text variable with Digits

mawaloc
2019-11-08
2019-11-08
  • mawaloc

    mawaloc - 2019-11-08

    Hello to all

    With Codesys V3.5

    I'm trying to visualize a text variable.

    For that I did a "box" where as
    - Text I've used %i m
    - Text variable My variable that is a REAL

    But In that case what is shown as text is only number before the digit.

    Example :
    - My variable 0.0555 => show 0 => I would like to see 0.05
    - My variable 1.355 => show 1 => I would like to see 1.35

    Thank you for help

     
  • e.kislov

    e.kislov - 2019-11-08

    Use %.2f instead %i.

     
  • mawaloc

    mawaloc - 2019-11-08

    Thank You => It's work good

     

Log in to post a comment.