وظيفة الكلمة

يتم تقريب الأرضية دائمًا للأسفل نحو اللانهاية السالبة، وهو أمر مهم بشكل خاص للأرقام السالبة.

🔢
حاسبة التقريب
أدخل رقمًا واختر تفضيلات التقريب الخاصة بك
|
🪄 أمثلة سريعة

كيف يعمل

1

خطوة 1

Choose the target precision or place value.

2

خطوة 2

Drop extra digits and move downward toward negative infinity.

3

خطوة 3

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

أمثلة عملت

Examples highlight where floor and truncate differ on negatives.

الإدخال الهدف الطريقة النتيجة
2.99 أقرب رقم صحيح دائري للأسفل (الأرضية) 2
-2.01 أقرب رقم صحيح دائري للأسفل (الأرضية) -3
12.309 أقرب مائة (2 dp) دائري للأسفل (الأرضية) 12.30

الأخطاء الشائعة

تجنب أخطاء التقريب المتكررة هذه عند التحقق من صحة المخرجات.

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

الأسئلة المتداولة

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.