תיעוד/פונקציות של Calc/TRUNC
Jump to navigation
Jump to search
Outdated translations are marked like this.
TDF LibreOffice Document Liberation Project בלוגים קהילתיים Weblate Nextcloud Redmine Ask LibreOffice תרומה
שם הפונקציה:
TRUNC
קטגוריה:
מתמטית
תקציר:
מקצרת מספר על ידי הסרת מקומות עשרוניים.
תחביר:
TRUNC(מספר; כמות)
מחזירה:
מחזירה מספר עם כמות מרבית של מקומות עשרוניים. מקומות עשרוניים עודפים פשוט נמחקים, ללא תלות בסימן.
משתנים:
מספר הוא מספר ממשי או הפניה לתא שמכיל את המספר לקיצור.
כמות הוא מספר שלם שמציין את דיוק הקיצור. ערך בררת המחדל לכמות הוא 0 מאחר שהפונקציה מחזירה את החלק השלם של המספר.
אם כמות אינו מספר שלם, הפונקציה מעגלת אותו למטה למספר השלם הקרוב ביותר.
פרטים נוספים:
- If you obtain unexpected results from TRUNC, check the following:
- Make sure that the number of displayed decimal places is not affected by the setting of the Limit decimals for general number format option in the General Calculations area of the ▸ ▸ ▸ dialog ( ▸ ▸ ▸ on macOS).
- Access the Numbers tab on the Format Cells dialog ( ▸ or equivalent interaction) to make sure that relevant cells do not have formatting applied that affects the number of displayed decimal places.
דוגמאות:
נוסחה | תיאור | מחזירה |
---|---|---|
=TRUNC(1.239;2) | מקצרת את 1.239 ל־2 מקומות עשרוניים | 2.34 |
=TRUNC(-1.234999;3) | מקצרת את -1.234999 ל־3 מקומות עשרוניים | -32.483 |
=TRUNC(2.648; 0) | Here the function rounds 2.648 toward 0, to the next integer. The alternative formula =TRUNC(2.648) returns the same value. |
2 |
=TRUNC(-45.67) | Here the function rounds -45.67 toward 0, to the next integer. | -45 |
=TRUNC(987.65; -2) | Here the function rounds 987.65 toward 0, to the next hundred. | 900 |
פונקציות LibreOffice קשורות:
תקן ODF:
פונקציות Excel מקבילות:
TRUNC