Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • C++ programming question ... not Arduino specific really Commented Jul 17, 2021 at 0:30
  • decimal format and floating point format are two different things ... what do you actually need? Commented Jul 17, 2021 at 0:47
  • @jsotola i just need the output displayed in the serial monitor to be in voltage and other parameter readings as given on the data sheet. Commented Jul 17, 2021 at 2:35
  • Re “data structure seems to be in decimal format”: It's not. It's binary. The reason you see decimal on the serial console is because Serial.println() converts its argument to decimal, for the purpose of printing it as text. The authors of this method assumed that most humans prefer reading decimal rather than binary. Note that Serial.println() can be told (by a second argument) to use a different base. Commented Jul 17, 2021 at 9:41