# Funciones numéricas generales

En estas funciones numéricas generales los argumentos son expresiones donde x debería interpretarse como un número de valor real. Todas las funciones pueden utilizarse tanto en scripts de carga como en expresiones de gráficos.

Utilice el desplegable de cada función para ver una breve descripción y la sintaxis de cada función. Haga clic en el nombre de la función en la descripción de la sintaxis si desea más detalles.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### bitcount

BitCount() encuentra cuántos bits de 1 hay en el equivalente binario de un número. Es decir, la función devuelve el número de bits activados en integer\_number, donde integer\_number se interpreta como un entero de 32 bits con signo.

[**bitcount**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/bitcount.htm)(integer\_number)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### div

Div() devuelve la parte de entero de la división aritmética del primer argumento por el segundo argumento. Ambos parámetros se interpretan como números reales, esto es, no tienen que ser enteros.

[**div**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/div.htm)(integer\_number1, integer\_number2)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### fabs

Fabs() devuelve el valor absoluto de x. El resultado es un número positivo.

[**fabs**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/fabs.htm)(x)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### fact

Fact() devuelve el número factorial de un entero positivo x.

[**fact**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/fact.htm)(x)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### frac

Frac() devuelve la fracción a la derecha del punto decimal de x, donde x es un número real.

[**frac**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/frac.htm)(x)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### sign

Sign() devuelve 1, 0 o -1 dependiendo de si x es un número positivo, 0 o un número negativo.

[**sign**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/sign.htm)(x)

## Funciones de combinación y permutación

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### combin

Combin() devuelve el número de combinaciones de elementos q que se pueden escoger de un grupo de p elementos. Según se representa en la fórmula: `Combin(p,q) = p! / q!(p-q)!` El orden en que se seleccionan los elementos no es significativo.

[**combin**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/combin.htm)(p, q)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### permut

Permut() devuelve el número de permutaciones de elementos q que se pueden seleccionar de un grupo de p elementos. Según se representa en la fórmula: `Permut(p,q) = (p)! / (p - q)!` El orden en que se seleccionan los elementos es significativo.

[**permut**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/permut.htm)(p, q)

## Funciones de módulo

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### fmod

fmod() es una función de módulo que devuelve la parte restante de la división del primer argumento (el dividendo) por el segundo argumento (el divisor). El resultado es un número real. Ambos argumentos se interpretan como números reales, esto es, no tienen que ser enteros.

[**fmod**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/fmod.htm)(a, b)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### mod

Mod() es una función de módulo que devuelve el resto no negativo de una división de entero. El primer argumento es el dividendo y el segundo argumento es el divisor. Ambos argumentos deben ser valores enteros.

[**mod**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/mod.htm)(integer\_number1, integer\_number2)

## Funciones de paridad

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### even

Even() devuelve True (-1) si integer\_number es un entero par o cero. Devuelve False (0) si integer\_number es un entero impar y NULL si integer\_number no es un entero.

[**even**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/even.htm)(integer\_number)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### odd

Odd() devuelve True (-1) si integer\_number es un entero impar o cero. Devuelve False (0) si integer\_number es un entero par y NULL si integer\_number no es un entero.

[**odd**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/odd.htm)(integer\_number)

## Funciones de redondeo

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### ceil

Ceil() redondea x hacia arriba, hacia el múltiplo más cercano de step [+ offset]. El valor predeterminado de offset es 0.

[**ceil**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/ceil.htm)(x[, step[, offset]])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### floor

Floor() redondea x hacia abajo, hacia el múltiplo más cercano de step [+ offset]. El valor predeterminado de offset es 0.

[**floor**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/floor.htm)(x[, step[, offset]])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### round

Round() devuelve el resultado de redondear x hacia arriba o hacia abajo hasta el múltiplo más cercano de step [+ offset]. El valor predeterminado de offset es 0.

[**round**](https://help.qlik.com/es-ES/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/round.htm)( x [ , step [ , offset ]])