Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
float f = 4.566456456454713131; // dein float
f = f + 0.005; // damit er "richtig" rundet, bei 3 nachkommastellen 0.0005 usw.
f = (int)(f*100); // hier wird der float *100 gerechnet und auf int gecastet, so fallen alle weiteren Nachkommastellen weg
f = f/100; // und hier wieder durch 100 dann haste 2 Nachkommastellen
// bei 3 Nachkommastellen jeweils mit 1000 Multiplizieren und dividieren
cout << f;