LARGEST_JAPANESE_NUMBER定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The largest number this module will answer for: 9,007,199,254,740,991, JavaScript's largest safe integer.
JavaScript stops counting exactly above it, and a number the runtime cannot hold is worse than one that is not offered: it would answer, confidently, with a value a digit or two out.
インポート
import { LARGEST_JAPANESE_NUMBER } from "@johnmorrisdotca/hikidashi/numerals";
ほかのエクスポート元: @johnmorrisdotca/hikidashi
定義
const LARGEST_JAPANESE_NUMBER: number = Number.MAX_SAFE_INTEGER
例
import { LARGEST_JAPANESE_NUMBER, writeJapaneseNumber } from "@johnmorrisdotca/hikidashi/numerals";
console.log(LARGEST_JAPANESE_NUMBER, writeJapaneseNumber(LARGEST_JAPANESE_NUMBER));
console.log(writeJapaneseNumber(LARGEST_JAPANESE_NUMBER + 1));9007199254740991 九千七兆千九百九十二億五千四百七十四万九百九十一
null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。