Zemin Fonksiyonu

Taban her zaman negatif sonsuza doğru aşağı doğru yuvarlanır, özellikle negatif sayılar için önemlidir.

🔢
Yuvarlama Hesaplayıcısı
Bir sayı girin ve yuvarlama tercihlerinizi seçin
|
🪄 Hızlı Örnekler

Nasıl Çalışır?

1

Adım 1

Choose the target precision or place value.

2

Adım 2

Drop extra digits and move downward toward negative infinity.

3

Adım 3

Return a value that is never greater than the original at that precision.

Çalışılan Örnekler

Examples highlight where floor and truncate differ on negatives.

Giriş Hedef Yöntem Sonuç
2.99 En Yakın Tam Sayı Aşağı Yuvarlatılmış (Zemin) 2
-2.01 En Yakın Tam Sayı Aşağı Yuvarlatılmış (Zemin) -3
12.309 En Yakın Yüzüncü (2 dp) Aşağı Yuvarlatılmış (Zemin) 12.30

Yaygın Hatalar

Çıkışları doğrularken bu sık görülen yuvarlama hatalarından kaçının.

  • 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.

Sıkça Sorulan Sorular

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.