Skip to main content
Module

x/atlas_sdk/mod.ts>Long.fromBigInt

TypeSafe MongoDB Atlas Data API SDK for Deno, Deno Deploy and Node.js
Latest
method Long.fromBigInt
import { Long } from "https://deno.land/x/atlas_sdk@v1.1.3/mod.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