I have a variable called maxVoltage, say maxVoltage = 1.95. How can i convert this to 195, in essence i want to “remove” the decimal point.
If i multiply by 100
int maxVoltageInt = maxVoltage * 100; Serial.print("max Volage is now: "); Serial.println(maxVoltageInt);
I get 196 in the output