Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/data/deps.ts>mongo.Long.fromBigInt

An ecosystem delivering practices, philosophy and portability.
Go to Latest
method mongo.Long.fromBigInt
Re-export
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { Long } = mongo;

Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.

Parameters

value: bigint
  • The number in question
optional
unsigned: boolean
  • Whether unsigned or not, defaults to signed

Returns

The corresponding Long value