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

kmb

Formats numbers into compact K/M/B notation.

Usage

import { Beaut } from "@0xhq/beaut";
 
const formatted = Beaut.kmb(1500000); 
 
Output: "1.50M"

Types

Parameters

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

Return Type

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