תיעוד/פונקציות של Calc/CEILING

    From The Document Foundation Wiki
    This page is a translated version of the page Documentation/Calc Functions/CEILING and the translation is 9% complete.
    Outdated translations are marked like this.
    Other languages:


    שם הפונקציה:

    CEILING

    קטגוריה:

    מתמטית

    תקציר:

    מעגלת מספר לכפולה הקרובה ביותר של ערך מובהקות.

    תחביר:

    CEILING(Number [; Significance [; Mode]])

    מחזירה:

    מחזירה ערך מספרי שלם.

    משתנים:

    מספר הוא הערך הממשי לעיגול או הפניה לתא שמכיל את המספר.

    מובהקות (רשות) הוא ערך המספר הממשי, או הפניה לתא שמכיל את הערך, שלפיו כמות של מספר תעוגל. בררת המחדל היא ‎+1 או ‎-1 בהתאם לסימן של מספר.

    מצב (רשות) הוא מספר, או הפניה לתא שמכיל מספר. הפונקציה משתמשת במצב אם גם המספר וגם המובהקות הם שליליים. במקרה כזה, אם סופק מצב והוא שונה מאפס, המספרים מעוגלים מטה (הרחק מהאפס). אם מצב שווה לאפס או שלא סופק, מספרים שליליים מעוגלים למעלה (לכיוון האפס).

    • If any argument is non-numeric, then CEILING reports a #VALUE! error.
    • If one of Number or Significance is positive while the other is negative, then CEILING reports an invalid argument error (שגיאה:‏502).
    • If either Number or Significance is equal to 0, then CEILING returns 0.

    פרטים נוספים:

    Details specific to CEILING function

    • With Significance set or defaulted to -1 or +1 (with the same sign as Number) and Mode set or defaulted to 0 or FALSE, CEILING provides functionality that implements the standard mathematical definition of a ceiling value.
    • Warning.svg

      Warning:
      אם הגיליון מיוצא ל־Microsoft Excel, פונקציית CEILING מיוצאת בתור הפונקציה CEILING.MATH המקבילה שקיימת מאז Excel 2013. אם תכננת להשתמש בגיליון הזה עם גרסאות מוקדמות יותר של Excel, יש להשתמש או ב־CEILING.PRECISE שקיימת מאז Excel 2010, או ב־CEILING.XCL שמיוצאת בתור פונקציית ה־CEILING שתואמת לכל גרסאות Excel.


      General information about Calc's ceiling functions

      Note pin.svg

      לתשומת לבך:
      For convenience, the information in this subsection is repeated on all pages describing Calc's ceiling functions.

      General introductory information about ceiling functions can be found at Wikipedia's Floor and ceiling functions page.

      Calc provides five functions that can be used to calculate the ceiling value of a number, and these are:

      The most important of these for many users will be the CEILING function, which implements the requirements laid out in Section 6.17.1 of ODF 1.2, Part 2.

      Calc provides the CEILING.MATH, CEILING.PRECISE, and ISO.CEILING functions to increase interoperability with Microsoft Excel, which provides three similar functions with the same names. Calc's CEILING.PRECISE and ISO.CEILING perform identical functions.

      Microsoft Excel's CEILING function accepts two arguments and so is not compliant with ODF 1.2. This difference in behaviour could lead to interoperability problems but these are avoided through the provision of the CEILING.XCL function, as follows:

      • When Calc saves a spreadsheet to Excel 2007-365 (*.xlsx) format, any call to Calc's CEILING function is converted to a call to Excel's CEILING.MATH function, and any call to Calc's CEILING.XCL function is converted to a call to Excel's CEILING function.
      • When Calc opens a spreadsheet in Excel 2007-365 (*.xlsx) format, any call to Excel's CEILING function is converted to a call to Calc's CEILING.XCL function.

      דוגמאות:

      נוסחה תיאור מחזירה
      =CEILING(11.5) מעגלת את 11.5 לכפולה הקרובה ביותר של ‎+1 (בררת מחדל) 12
      =CEILING(−11.5) מעגלת למעלה את ‎-11.5 לכפולה הקרובה ביותר של ‎-1 (בררת מחדל) −11
      =CEILING(7; 2.3) מעגלת את ‎-11 לכפולה הקרובה ביותר של ‎-2 9.2
      =CEILING(−7;−2.3) מעגלת למטה את ‎-10 לכפולה הקרובה ביותר של ‎-3 תחת מצב 1 שאינו 0 ולכן התוצאה תתרחק מ־0 −6.9
      ‎=CEILING(-11.67;-2;0) מעגלת למעלה את ‎-11.67 לכפולה הקרובה של ‎-2 כלומר לכיוון ה־0 12
      =CEILING(−10; −3; 0) מעגלת למטה את ‎-11.67 לכפולה הקרובה ביותר של ‎-2 תחת מצב 1 שאינו 0 ולכן התוצאה תתרחק מ־0 −9
      =CEILING(−10; −3; 7.6) מעגלת למעלה את 11.5 לכפולה הקרובה ביותר של ‎-1 אך עקב הסימן המנוגד יוחזר ערך שגיאה −12
      =CEILING(−3.6; ; TRUE()) Significance defaults to -1. With Mode set to a non-zero value, the function rounds down the value of -3.6 to the nearest integer multiple of -1. −4

      פונקציות LibreOffice קשורות:

      CEILING.MATH

      CEILING.PRECISE

      CEILING.XCL

      FLOOR

      FLOOR.MATH

      FLOOR.PRECISE

      FLOOR.XCL

      INT

      ISO.CEILING

      תקן ODF:

      סעיף 6.17.1, חלק 2

      פונקציות Excel מקבילות (או דומות):

      CEILING.MATH