@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
80 lines • 2.77 kB
TypeScript
import type { ExprValue } from '../types.js';
/**
* Return true if the floating point value is not a number, false otherwise.
* @param expr The input number.
*/
export declare function isNaN(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Return true if the floating point value is finite, false otherwise.
* @param expr The input number.
*/
export declare function isFinite(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Return true if the floating point value is infinite, false otherwise.
* @param expr The input number.
*/
export declare function isInfinite(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Selects the largest value.
* @param expr The input expressions.
*/
export declare function greatest(...expr: ExprValue[]): import("../index.js").FunctionNode;
/**
* Selects the smallest value.
* @param expr The input expressions.
*/
export declare function least(...expr: ExprValue[]): import("../index.js").FunctionNode;
/**
* Compute the exponentional function `e ** expr`.
* @param expr The input number.
*/
export declare function exp(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Compute a base 10 logarithm.
* @param expr The input number.
*/
export declare function log(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Compute a natural logarithm.
* @param expr The input number.
*/
export declare function ln(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Compute the sign of a number.
* @param expr The input number.
*/
export declare function sign(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Compute the absolute value of a number.
* @param expr The input number.
*/
export declare function abs(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Compute the square root of a number.
* @param expr The input number.
*/
export declare function sqrt(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Rounds the number up.
* @param expr The input number.
*/
export declare function ceil(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Rounds the number down.
* @param expr The input number.
*/
export declare function floor(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Round to the given decimal places.
* @param expr The input number.
* @param places The decimal places.
* Negative values are allowed, to round to tens, hundreds, etc.
* If unspecified, defaults to zero.
*/
export declare function round(expr: ExprValue, places?: ExprValue): import("../index.js").FunctionNode;
/**
* Truncates the number.
* @param expr The input number.
*/
export declare function trunc(expr: ExprValue): import("../index.js").FunctionNode;
//# sourceMappingURL=numeric.d.ts.map