Skip to main content
Module

x/mongo/mod.ts>Bson.Long#toNumber

MongoDB driver for Deno
Very Popular
Go to Latest
method Bson.Long.prototype.toNumber
import { Bson } from "https://deno.land/x/mongo@v0.31.2/mod.ts";
const { Long } = Bson;

Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).

Returns

number