UNPKG

mingo

Version:

MongoDB query language for in-memory objects

7 lines (6 loc) 399 B
/** * Converts a value to a decimal. If the value cannot be converted to a decimal, $toDecimal errors. * If the value is null or missing, $toDecimal returns null. * This is just an alias for `$toDouble` in this library. */ export declare const $toDecimal: (obj: import("../../../types").AnyObject, expr: import("../../../types").Any, options: import("../../../types").Options) => number | null;