LARGEST_JAPANESE_NUMBERconstant
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 it
import { LARGEST_JAPANESE_NUMBER } from "@johnmorrisdotca/hikidashi/numerals";
Also exported from: @johnmorrisdotca/hikidashi
Definition
const LARGEST_JAPANESE_NUMBER: number = Number.MAX_SAFE_INTEGER
Examples
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 九千七兆千九百九十二億五千四百七十四万九百九十一
nullWhat it prints (run when this page was built)