Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

bigint

Formats raw bigint inputs into human-readable decimal strings.

Usage

import { Beaut } from "@0xhq/beaut";
 
const formatted = Beaut.bigint(1000000000000000000n, 18, { fallback: "0" }); 
 
Output: "1.0"

Types

Parameters

import { BigintParameters } from "@0xhq/beaut";

Return Type

import { BigintReturnType } from "@0xhq/beaut";