Skip to main content
Module

x/web_bson/mod.d.ts>Long.fromBigInt

web_bson is a fork from mongodb/js-bson
Very Popular
Latest
method Long.fromBigInt
import { Long } from "https://deno.land/x/web_bson@v0.3.0/mod.d.ts";

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