Bodenfunktion
Floor rundet immer nach unten in Richtung negative Unendlichkeit, was besonders wichtig für negative Zahlen ist.
Rundungsrechner
Geben Sie eine Zahl ein und wählen Sie Ihre Rundungseinstellungen
|
🪄 Schnelle Beispiele
📋 Wie es funktioniert
Wie es funktioniert
1
Schritt 1
Choose the target precision or place value.
2
Schritt 2
Drop extra digits and move downward toward negative infinity.
3
Schritt 3
Return a value that is never greater than the original at that precision.
📊 Beispiele
Ausgearbeitete Beispiele
Examples highlight where floor and truncate differ on negatives.
| Eingang | Ziel | Verfahren | Ergebnis |
|---|---|---|---|
| 2.99 | Nächste ganze Zahl | Abrunden (Boden) | 2 |
| -2.01 | Nächste ganze Zahl | Abrunden (Boden) | -3 |
| 12.309 | Nächstes Hundertstel (2 dp) | Abrunden (Boden) | 12.30 |
Tipps
Häufige Fehler
Vermeiden Sie diese häufigen Rundungsfehler bei der Validierung von Ausgaben.
- Treating floor as simple digit cut-off.
- Expecting floor to behave like nearest rounding.
- Using floor when toward-zero behavior is required.
- Ignoring sign when validating test results.
❓ FAQ
Häufig gestellte Fragen
Is floor the same as truncate?
No. Floor moves toward negative infinity while truncate moves toward zero.
How does floor work for negatives?
Negative numbers become more negative whenever there is a remainder.
When is floor useful?
Floor is useful for conservative lower-bound calculations.
Can I compare floor and ceiling quickly?
Yes. Related links let you test the same inputs under both methods.