Ceiling functions

CEILING

Arredonda un número ao múltiplo significativo máis próximo.

Para un número positivo e un valor significativo positivo, a función arredonda para arriba (afastándose do cero). Para un número negativo e un valor significativo positivo, a dirección do arredondamento vén determinada polo valor dun parámetro de modo. A función devolve un erro se o número e o valor significativo teñen signos opostos.

warning

If the spreadsheet is exported to Microsoft Excel, the CEILING function is exported as the equivalent CEILING.MATH function that has existed since Excel 2013. If you plan to use the spreadsheet with earlier Excel versions, use either CEILING.PRECISE that has existed since Excel 2010, or CEILING.XCL that is exported as the CEILING function compatible with all Excel versions.


Sintaxe

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

Número é o número que hai que arredondar ou unha referencia a unha cela que conteña o número.

Significance (optional) is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded. It defaults to +1 or -1 depending on the sign of Number.

Mode (optional) is a number, or a reference to a cell containing a number. The function only uses Mode if both Number and Significance are negative. Then if Mode is given and not equal to zero, numbers are rounded down (away from zero); if Mode is equal to zero or not given, negative numbers are rounded up (towards zero).

Exemplos

=CEILING(3.45) returns 4.

=CEILING(3.45; 3) returns 6.

=CEILING(-1.234) returns -1.

=CEILING(-45.67; -2; 0) returns -44.

=CEILING(-45.67; -2; 1) returns -46.

CEILING.PRECISE

Arredonda un número cara arriba até o múltiplo máis próximo da cifra significativa.

Para un número positivo a función arredonda para arriba (afastándose do cero). Para un número negativo a función arredonda para arriba (cara o cero). Ignórase o signo do valor significativo.

note

This function calculates identical results to the ISO.CEILING function.


Sintaxe

CEILING.PRECISE(Number [; Significance])

Número é o número que hai que arredondar ou unha referencia a unha cela que conteña o número.

Significance (optional) is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded. It defaults to 1.

Exemplos

=CEILING.PRECISE(3.45) returns 4.

=CEILING.PRECISE(-45.67; 2) returns -44.

Información técnica

tip

Esta función está dispoñíbel desde a versión 4.3 do LibreOffice.


Esta función NON é parte do estándar Formato Open Document para Aplicacións de Ofimática (OpenDocument), versión 1.3. Parte 4: Fórmula recalculada (OpenFormula). O espazo de nomes é

COM.MICROSOFT.CEILING.PRECISE

CEILING.MATH

Rounds a number to the nearest multiple of a significance value.

For a positive number the function rounds up (away from zero). For a negative number, the direction of rounding is determined by the value of a mode parameter. The sign of the significance value is ignored.

warning

This function exists for interoperability with Microsoft Excel 2013 or newer.


Sintaxe

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

Número é o número que hai que arredondar ou unha referencia a unha cela que conteña o número.

Significance (optional) is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded. It defaults to 1.

Mode (optional) is a number, or a reference to a cell containing a number. If Mode is given and not equal to zero, a negative Number is rounded down (away from zero). If Mode is equal to zero or is not given, a negative Number is rounded up (towards zero).

Exemplos

=CEILING.MATH(3.45) returns 4.

=CEILING.MATH(3.45; -3) returns 6.

=CEILING.MATH(-1.234) returns -1.

=CEILING.MATH(-45.67; -2; 0) returns -44.

=CEILING.MATH(-45.67; +2; 1) returns -46.

Información técnica

tip

Esta función está dispoñíbel desde a versión 5.0 do LibreOffice.


Esta función NON é parte do estándar Formato Open Document para Aplicacións de Ofimática (OpenDocument), versión 1.3. Parte 4: Fórmula recalculada (OpenFormula). O espazo de nomes é

COM.MICROSOFT.CEILING.MATH

CEILING.XCL

Rounds a number to the nearest multiple of a significance value.

For a positive number and a positive significance value, the function rounds up (away from zero). For a negative number and a positive significance value, the function rounds up (towards zero). For a negative number and a negative significance value, the function rounds down (away from zero). The function returns an error if the number is positive and the significance value is negative.

warning

This function exists for interoperability with Microsoft Excel 2007 or older. If a Calc spreadsheet is exported to Microsoft Excel, references to Calc’s CEILING.XCL function are exported as references to Excel’s CEILING function, which is compatible with all Excel versions. If a Microsoft Excel spreadsheet is imported into Calc, references to Excel’s CEILING function are imported as references to Calc’s CEILING.XCL function.


Sintaxe

CEILING.XCL(Number; Significance)

Número é o número que hai que arredondar ou unha referencia a unha cela que conteña o número.

Significance is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded.

Exemplos

=CEILING.XCL(3.45,2) returns 4.

=CEILING.XCL(-45.67; 2) returns -44.

=CEILING.XCL(-45.67; -2) returns -46.

Información técnica

tip

Esta función está dispoñíbel desde a versión 5.0 do LibreOffice.


Esta función NON é parte do estándar Formato Open Document para Aplicacións de Ofimática (OpenDocument), versión 1.3. Parte 4: Fórmula recalculada (OpenFormula). O espazo de nomes é

COM.MICROSOFT.CEILING

ISO.CEILING

Rounds a number up to the nearest multiple of a significance value.

For a positive number the function rounds up (away from zero). For a negative number, the function rounds up (towards zero). The sign of the significance value is ignored.

note

This function calculates identical results to the CEILING.PRECISE function.


Sintaxe

ISO.CEILING(Number [; Significance])

Número é o número que hai que arredondar ou unha referencia a unha cela que conteña o número.

Significance (optional) is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded. It defaults to 1.

Exemplos

=ISO.CEILING(3.45) returns 4.

=ISO.CEILING(-45.67; 2) returns -44.

Información técnica

tip

Esta función está dispoñíbel desde a versión 4.3 do LibreOffice.


Esta función NON é parte do estándar Formato Open Document para Aplicacións de Ofimática (OpenDocument), versión 1.3. Parte 4: Fórmula recalculada (OpenFormula). O espazo de nomes é

COM.MICROSOFT.ISO.CEILING