mingo
    Preparing search index...
    $toDecimal: (obj: AnyObject, expr: unknown, options: Options) => number = $toDouble

    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.

    Type Declaration

      • (obj: AnyObject, expr: unknown, options: Options): number
      • Converts a value to a double. If the value cannot be converted to an double, $toDouble errors. If the value is null or missing, $toDouble returns null.

        Parameters

        Returns number