I'm struggling with calculations involving large floats. Running the following code on my Wemos Lolin32 Lite on Arduino featuring an ESP-32 Rev1
- double test = 2.;
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(31250);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- test*=1.1;
- Serial.println(test);
- }
Code: Select all
3400938557.93
3741032413.72
4115135655.09
ovf
ovf
ovf
I would be glad if someone could reproduce this / help me / hint me at other resources, thanks in advance!