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

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

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

Returns a Long representation of the given string, written using the specified radix.

Parameters

str: string
  • The textual representation of the Long
optional
unsigned: boolean
  • Whether unsigned or not, defaults to signed
optional
radix: number
  • The radix in which the text is written (2-36), defaults to 10

Returns

The corresponding Long value