Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tstl/benchmark/internal/StringUtil.ts>StringUtil.numberFormat

TypeScript-STL (Standard Template Library, migrated from C++)
Go to Latest
method StringUtil.numberFormat
import { StringUtil } from "https://deno.land/x/tstl@v2.4.11/benchmark/internal/StringUtil.ts";

Number to formatted string with "," sign.

Returns a string converted from the number rounded off from specified precision with "," symbols.

Parameters

val: number

A number wants to convert to string.

optional
precision: number = [UNSUPPORTED]

Target precision of round off.

Returns

string

A string who represents the number with roundoff and "," symbols.