REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Resolution of data passed through GoTo block

    REXYGEN Studio
    2
    2
    3
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MikeyH
      last edited by

      Hi All,

      I'm reading some registers on a device and passing them to other parts within the REX program.

      My question is why am I dropping the decimal point? on the left you can see the true values and on the right you can see the value has now dropped a decimal. What would cause this?
      f2f52232-b300-430f-adbb-5ca7b11e5bfb-image.png

      Cheers,
      Mike

      J 1 Reply Last reply Reply Quote 0
      • J
        Jan Reitinger @MikeyH
        last edited by

        @MikeyH
        Hi Mike,

        Without seeing the full schema, my guess would be a data type mismatch. It looks like the block with the val0-2 inputs might be expecting an integer (long) data type. If that's the case, any incoming real number would get automatically rounded or truncated, which would explain the lost decimal places.
        4c1bb596-2757-4241-9838-e73fc8ea7611-image.png

        Cheers,
        Jan

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

        There is also an outdated REXYGEN community forum.

        Powered by NodeBB.