13
Aug

35/80 IoT MOOC Part I: Programming Example. Rice grains


Well, in this first example,
we’re going to see how this ‘Rice grains’ example works.
So, I have already uploaded the code into the board, so
let’s switch to the console to see how it works. So whenever
I press the reset button, what we see is a bunch of text
which corresponds to the boot of the board and then
we see here ‘int’ with a value 0, the ‘long int’
with the value 0 and then the f’loat’ within a
strange number, because it’s not the correct value. As
you can see here it has decimals. So, this is because
of the overflow of their the representation that we’re
using in this problem which cannot be represented with a float [neither
with int or long int]. Thank you

Tags: , , , , , , , , , , , ,

There are no comments yet

Why not be the first

Leave a Reply

Your email address will not be published. Required fields are marked *