HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📌
hkob's Notion
/
ℹ️
逆引きFormula 2.0
/
📓
formatNumber
📓

formatNumber

Formula 2.0
Formula 2.0
関数形式の文法(演算子も含む)
formatNumber(value, format?, precision)
メソッド形式の文法
value.formatNumber(format?, precision)
演算子形式の文法
入力の型
Number
formula解説
返り値の型
String
作成日時
Oct 22, 2025 10:01 AM
逆引き Formula 利用例
説明
テキストとしてフォーマットされた数値を返します。
注記 (変更点)
Name
func
method
value
format?
precision?
commas
123456789.12345679
commas
4
humanize
12345.6789
humanize
3
jpy (yen でも可、precision は意味なし)
12345.6789
jpy
2
usd (dollar でも可)
12345.6789
usd
4
bytes (bytes_binary の別名)
123456789.12345679
bytes
2
bytes_binary
123456789.12345679
bytes_binary
2
bytes_decimal
123456789.12345679
bytes_decimal
2