This works everywhere! Even in your browser!
This is a basic number to text program written by me. Nothing in here was copied from the internet except of the "Names of large numbers" or "Standard dictionary numbers"
Feel free to create issues!
Just change the number at line 117 in index.js to whatever you like it to be. It will return following
- original -> the original number as a bigint
- packs -> 3 packs of numbers sorted in original number order
- text -> the text for the number
Code:
console.log(gtftdn("12345678901234567890"))
Output:
{
original: 12345678901234567890n,
packs: [
'12', '345',
'678', '901',
'234', '567',
'890'
],
text: {
normal: 'Twelve Quintillion Three Hundred Forty Five Quadrillion Six Hundred Seventy Eight Trillion Nine Hundred One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety',
lowerCase: 'twelve quintillion three hundred forty five quadrillion six hundred seventy eight trillion nine hundred one billion two hundred thirty four million five hundred sixty seven thousand eight hundred ninety'
}
}
[] API Server from this
I'm trying to be as close to the standards as possible. Here is what I am using.