🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Float 32bit interpretation - best way in uiflow2?

    UiFlow 2.0
    1
    1
    659
    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.
    • robskiR
      robski
      last edited by robski

      I'm reading 2 registers (2 integers/ 4 bytes) via modbus from remote slave device,
      those 2 registers represent float value of current.
      what is the best way to interpret two variables in to 32bit float?
      var1 =16843
      var2 = 13003
      expected float value var3 = 25.3998

      M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

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