Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
unsigned int abrunden(unsigned int zahl) {
unsigned int stellen=1,tmp = zahl;
while(tmp>9) {
tmp/=10;
stellen++;
}
tmp=1;
for(int i=1;i<stellen;i++)
tmp*=10;
return (zahl/tmp)*tmp;
}
int intfloor(int num, int stepwidth = 0) {
if (!stepwidth) for (stepwidth = 1; stepwidth * 10 <= num; stepwidth *= 10); // für intfloor(einstellige_zahl) == 0 einfach "stepwidth = 10"
return num - (num % stepwidth); //bei fester Rundungsstufe brauchts nur das hier
}