I don't think that float is an issue in this case
I do :P
#include <cmath>
#include <cstdio>
int main() {
int Base = 500'000;
printf("%f\n", Base * powf(1 + 0.035, 10));
printf("%f\n", Base * pow(1 + 0.035, 10));
return 0;
}
Running yields:
Program returned: 0
705299.125000
705299.380311
https://godbolt.org/z/Wd98dh
olli
Vlad
Hrithik.41
Jasur Fozilov 🐳
No.7 Addict 👽
Manav
Accel
Alex
Ludovic 'Archivist'
net