# Funciones numéricas generales

En estas funciones numéricas generales, los argumentos son expresiones donde x se debe interpretar como un número con valor real. Todas las funciones pueden utilizarse tanto en scripts de carga de datos 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/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### bitcount

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

[**bitcount**](https://help.qlik.com/es-ES/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/bitcount.htm)(integer\_number)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### div

Div() devuelve la parte entera 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/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/div.htm)(integer\_number1, integer\_number2)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/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/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/fabs.htm)(x)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### fact

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

[**fact**](https://help.qlik.com/es-ES/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/fact.htm)(x)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### frac

Frac() devuelve la parte x de la fracción.

[**frac**](https://help.qlik.com/es-ES/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/frac.htm)(x)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/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/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/sign.htm)(x)

## Funciones de combinación y permutación

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### combin

Combin() devuelve el número de combinaciones de elementos q que se pueden seleccionar de un conjunto de elementos p. Según lo representado por la fórmula: `Combin(p,q) = p! / q!(p-q)!` El orden en que se seleccionan los elementos es insignificante.

[**combin**](https://help.qlik.com/es-ES/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/combin.htm)(p, q)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### permut

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

[**permut**](https://help.qlik.com/es-ES/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/permut.htm)(p, q)

## Funciones de módulo

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### fmod

fmod() es una función de módulo generalizada que devuelve la parte restante de la división entera 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/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/fmod.htm)(a, b)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### mod

Mod() es una función matemática de módulo que devuelve el resto no negativo de una división de un 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/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/mod.htm)(integer\_number1, integer\_number2)

## Funciones de paridad

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/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/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/even.htm)(integer\_number)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/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/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/odd.htm)(integer\_number)

## Funciones de redondeo

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### ceil

Ceil() redondea un número hacia arriba, hacia el múltiplo más cercano de step desplazado por el número offset .

[**ceil**](https://help.qlik.com/es-ES/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/ceil.htm)(x[, step[, offset]])

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### floor

Floor() redondea un número hacia abajo, hacia el múltiplo más cercano de step desplazado por el número offset .

[**floor**](https://help.qlik.com/es-ES/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/floor.htm)(x[, step[, offset]])

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### round

Round() devuelve el resultado de redondear un número hacia arriba o hacia abajo al múltiplo más cercano de step desplazado por el número offset .

[**round**](https://help.qlik.com/es-ES/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/round.htm)( x [ , step [ , offset ]])