I am trying to print the decimal value of a variable. I have it set to print to a display that I have connected as well as the Serial Monitor. I have tried a combination of formatting options from the Print() section of the arduino website, none of which have aided me.
For example:
I have a stored value that I want to increment by .1 every 1s. It works when I change the increment to 1, but when it is .1, it returns zero each time. Additionally, it does not rollover the value from 0 to 1 when the tenth increments should have accumulated a whole number.
I'm using a Metro M0.
I have attached my project file.
Thanks!
Metro_Matrix_PrintChange_Testy.ino (572 Bytes)