Untitled
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double x = 12.34;
cout << "Komma an Position " << floor(log10(x))+1;
return 0;
}INFO
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double x = 12.34;
cout << "Komma an Position " << floor(log10(x))+1;
return 0;
}