• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Accuracy of the measurements

Q&A Forum › Category: Questions › Accuracy of the measurements
0 Vote Up Vote Down
Rudolf Reiber asked 9 months ago

Hello Rui, hello Sara, I have a comment on the example programmes in which measured values are displayed.
Why are there always two digits after the decimal point?
This reflects an accuracy that cannot be provided by the sensors at all. In most cases, the specification without a decimal point is completely sufficient. If, for example, a temperature sensor has an accuracy of 1% in the measuring range from 0°C to 100°C, which is already very good, it makes no sense to display a measured temperature of 23.45°C, for example.
Translated with http://www.DeepL.com/Translator (free version)

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Hi.
You are right.
Most examples provided by the sensor libraries will give you two decimal points. And we based our examples on that.
But, you’re right. You can change the code slightly to only show one or no decimal points at all if you want.
 
Thanks for pointing that out.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.