float pass = 2.4f;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S2!");
Serial.print("Pior to alteration. Pass = ");
Serial.println(pass);
int wholeNum = (int)(pass);
float frac = (pass - (long)(pass));
Serial.print("frac = ");
Serial.println(frac);
Serial.print("wholeNum = ");
Serial.println(wholeNum);
Serial.print("After alteration, Pass = ");
Serial.println(pass);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}