Skip to main content
Module

x/atlas_sdk/deps.ts>Long.fromNumber

TypeSafe MongoDB Atlas Data API SDK for Deno, Deno Deploy and Node.js
Latest
method Long.fromNumber
import { Long } from "https://deno.land/x/atlas_sdk@v1.1.3/deps.ts";

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

Parameters

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

Returns

The corresponding Long value