I am trying to remove decimals out of my reading. The compiler does not like #include <iostream> so is there a better way to accomplish this? Sample of what I’m trying to accomplish is below. The LCD is showing ‘100.00’ but I want it as ‘100.’ Thanks
Sorry, I am using a LCD screen with i2c communication.
The "percent = round(percent10.0)/10.0;" (fyi: I changed it to 'percent = round(percent1)/1;’) works great thank you! However I would like to not display “.00” on the LCD. Is that possible? Thanks