void setup()
{
Serial.begin(115200);
Serial.print("1/58 = ");
// 30 digits, that is about 20 digits of pure nonsense !
Serial.println(1.0/58.0, 30);
// Speed of sound in air:
// at 0 °C 331 m/s
// at 20 °C 343 m/s
// at 40 °C 355 m/s
//
// The sound travels to the object and has to return.
// That is twice the distance.
//
// 343 m/s is 0.0343 cm/µs and then half of that.
Serial.print("Using the speed of sound: ");
Serial.println(0.0343/2.0, 11);
Serial.println();
}
void loop()
{
delay(10);
}
🯵🯸