number(num) {
        num = resolveFunc(num);
        if (isNull(num)) {
            return 'null';
        }
        const t = typeof num;
        if (t !== 'number' && t !== 'bigint') {
            throw new TypeError(`${wrapText(num)} is not a number.`);
        }
        return $to.number(num);
    }
@method formatting.number
@description
Converts a numeric value into its PostgreSQL number presentation, with support
for special values of `NaN`, `+Infinity` and `-Infinity`.

@param {number|bigint|function} num
Number to be converted, or a function that returns one.

@returns {string}