Fungsi Lantai
Lantai selalu membulat ke bawah menuju tak terhingga negatif, terutama untuk bilangan negatif.
Kalkulator Pembulatan
Masukkan angka dan pilih preferensi pembulatan Anda
|
🪄 Contoh Singkat
📋 Cara Kerjanya
Cara Kerjanya
1
Langkah 1
Choose the target precision or place value.
2
Langkah 2
Drop extra digits and move downward toward negative infinity.
3
Langkah 3
Return a value that is never greater than the original at that precision.
📊 Contoh
Contoh yang Dikerjakan
Examples highlight where floor and truncate differ on negatives.
| Masukan | Sasaran | Metode | Hasil |
|---|---|---|---|
| 2.99 | Bilangan Bulat Terdekat | Bulatkan ke Bawah (Lantai) | 2 |
| -2.01 | Bilangan Bulat Terdekat | Bulatkan ke Bawah (Lantai) | -3 |
| 12.309 | Keseratus Terdekat (2 dp) | Bulatkan ke Bawah (Lantai) | 12.30 |
Kiat
Kesalahan Umum
Hindari kesalahan pembulatan yang sering terjadi saat memvalidasi keluaran.
- 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.
❓ Pertanyaan Umum
Pertanyaan yang Sering Diajukan
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.