דילוג לתוכן
שאלה

Floating-point precision

תצוגה מקדימה

מפתח התשובות מוצג למורים מחוברים.

Floating-point precision

Because of how decimal numbers are stored in binary, the value of \(0.1+0.2\) computed with floating-point arithmetic in most languages is exactly equal to \(0.3\).

  1. True

  2. False


Floating-point types store approximations of many decimal fractions. Consider whether \(0.1\) can be represented exactly in binary.

פרטים

אין תיאור עדיין.

מקצועות
שפות תכנות
קהל יעד
תיכון · כיתות י׳–י״א
רמת קושי
6 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר
עודכן
לפני 4 ימים

תגובות

  1. אין תגובות עדיין.
© כל הזכויות שמורות