-
Notifications
You must be signed in to change notification settings - Fork 0
/
illions.html
650 lines (505 loc) · 38.9 KB
/
illions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sussy illion name generator</title>
<meta property="og:site_name" content="orbit-loona.github.io" />
<meta property="og:type" content="website" />
<meta property="og:title" content="weird number-to-illion converter" />
<meta property="og:url" content="https://orbit-loona.github.io/illions.html" />
<meta property="og:description" content="an illion generator; number goes in, -illion comes out" />
<meta property="og:locale" content="en_US" />
<meta property="og:image" content="https://orbit-loona.github.io/bin/tuesday-for-newjeans.png" />
<meta property="og:image:width" content="573" />
<meta property="og:image:height" content="125" />
<meta property="og:image:alt" content="newjeans when the number is big, googologists when the newjeans is newjeans" />
<meta name="twitter:image:src" content="https://orbit-loona.github.io/bin/tuesday-for-newjeans.png" />
<meta name="twitter:title" content="weird number-to-illion converter" />
<meta name="twitter:description" content="an illion generator; number goes in, -illion comes out" />
<link rel="stylesheet" href="main.css"/>
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="An Orbit">
<meta charset="UTF-8">
<style>
body {
width: 99vw;
font-size: 110;
word-wrap: break-word;
padding: 0.5vw;
}
@media (min-width: 600px) {
body {
font-size: 110%;
};
}
input, button {
font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", serif;
}
.oneIllion {
font-size: 120%;
}
.full {
color: AliceBlue;
}
.full-divider {
color: LightBlue;
}
.abbreviation {
color: LemonChiffon;
padding-left: 2.5vw;
}
.abbreviation-divider {
color: Wheat;
}
.value {
color: Thistle;
padding-left: 2.5vw;
}
.hidden {
font-size: 0px !important;
}
</style>
</head>
<body>
<h1>Sussy illion name generator (0–10<span class="hidden"> to the power of </span><sup>63</sup>-1)</h1><!--(0–999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999)-->
<p>This will generate a name for a specified <em>n</em>-illion, using a made-up system derived from the Bowers illions. <strong>This tool is not authoritative.</strong><br/>Values greater than 10<span class="hidden"> to the power of </span><sup>63</sup>-1 will be capped to 10<span class="hidden"> to the power of </span><sup>63</sup>-1.</p>
<h2>Settings</h2>
<div id="settings">
Generate a name for illion: <input title="-illion textbox" id="whichIllion" type="text" maxlength=69> (decimal integer, non-numeric characters are ignored.) <br/>
Capitalize first letter: <input title="Capital checkbox" type="checkbox" id="capitalize" checked/><br/>
Show abbreviation: <input title="Abbreviation checkbox" type="checkbox" id="abbreviate" checked><br/>
Show value: <input title="Value checkbox"type="checkbox" id="value"><br/>
Use -yllions<span class="hidden"> (with a Y)</span>: <input title="-yllion checkbox" type="checkbox" id="myllions"><br/>
Use long scale for value: <input title="Long scale checkbox" type="checkbox" id="longScale"> (ignored for -yllions<span class="hidden"> (with a Y)</span>)<br/>
Show |<span class="hidden"> (vertical bar)</span> dividers: <input title="Vertical bar checkbox" type="checkbox" id="dividers"><br/>
</div><br/>
<h2>Generate</h2>
<button onclick="generateText()" id="generateButton">Generate</button>
<div id="resultDiv"></div>
<script>
/* This generates a single specified illion name, based on the prior extended illion generator, but nerfed to just one name because that one somehow lagged my device to death just having it open without even using it. The format is a synthesis of various extensions to the -illion system, mostly the Bowers system subjected to bad things to maintain a little-endian order. The roots start to become arbitrary past the centillion and become progressively more arbitrary as log10(n) increases. The abbreviations, however, become more arbitrary somewhat sooner.*/
window.onload = function() {
document.getElementById("whichIllion")
.addEventListener("keyup", function(event) {
event.preventDefault();
if (event.keyCode === 13) {
document.getElementById("generateButton").click();
}
});
};
showDividers = false;
capitalizeIllionNames = true;
function getCapitalize() {
capitalizeIllionNames = document.getElementById('capitalize').checked;
return capitalizeIllionNames;
}
function getDividerStatus() {
showDividers = document.getElementById('dividers').checked;
return showDividers;
}
function getLongScaleStatus() {
useLongScale = document.getElementById('longScale').checked;
return useLongScale;
}
function getAbbreviationStatus() {
showAbbreviation = document.getElementById('abbreviate').checked;
return showAbbreviation;
}
function getMyllionStatus() {
useMyllions = document.getElementById('myllions').checked;
return useMyllions;
}
function getValueStatus() {
showValue = document.getElementById('value').checked;
return showValue;
}
//we're passing Number.MAX_SAFE_INTEGER and need BigInts to preserve illions starting in the high quadrillions
const bigIntMax = (...args) => args.reduce((m, e) => e > m ? e : m);
const bigIntMin = (...args) => args.reduce((m, e) => e < m ? e : m);
function getMaximum() {
return 10n ** (rootIndexBound + 1n) - 1n;
};
whichIllion = 8n;
function getWhichIllion() {
//read textbox
whichIllion = document.getElementById('whichIllion').value;
//interpret string
whichIllion = whichIllion.replace(/[^\d]/ig, '');
whichIllion = BigInt(whichIllion);
var wiMax = 10n ** (rootIndexBound + 1n) - 1n; //returns 999n with 3 roots, which should cover 0n-999n (10n**3n - 1n) and nothing more
//do bounds and compensate for skipped index
whichIllion = (whichIllion <= 8n ? 0n : 1n) + bigIntMin(wiMax,bigIntMax(0n,whichIllion));
return whichIllion;
};
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
};
rootObject = {
first9: [ "million", "billion", "trillion", "quadrillion", "quintillion", "sextillion", "septillion", "octillion", "nonillion", "ERROR" ],
first9M: [ "myllion", "byllion", "tryllion", "quadryllion", "quintyllion", "sextyllion", "septyllion", "octyllion", "nonyllion", "ERROR" ],
first9A: [ "M", "B", "T", "Qa", "Qi", "Sx", "Sp", "O", "N", "ERROR" ], //Qa and Qd could also be respectively Qd, or either of Qn or Qt; O and N could be Oc or No.
oneE0s: ["", "un", "duo", "tre", "quattuor", "quin", "sex", "septen", "octo", "novem", "ERROR"],
oneE0sA: ["", "U", "D", "T", "Qa", "Qi", "Sx", "Sp", "O", "N", "ERROR"],
oneE1s: ["", "dec", "vigint", "trigint", "quadragint", "quinquagint", "sexagint", "septuagint", "octogint", "nonagint", "ERROR"],
oneE1sA: ["", "Dc", "Vg", "Tg", "Qag", "Qig", "Sxg", "Spg", "Og", "Ng", "ERROR"],
oneE2s: ["", "cent", "ducent", "trecent", "quadringent", "quingent", "sescent", "septingent", "octingent", "nongent", "ERROR"],
oneE2sA: ["", "Ct", "Dc", "Tc", "Qdg", "Qgt", "Sct", "Sgt", "Ogt", "Ngt", "ERROR"],
oneE3s: ["", "mill", "dumill", "tremill", "quadrimill", "quintimill", "sextimill", "septinmill", "octimill", "nonimill", "ERROR"],
oneE3sA: ["", "Mll", "Dml", "Tml", "Qaml", "Qiml", "Sxml", "Spml", "Oml", "Nml", "ERROR"],
oneE4s: ["", "myr", "dumyr", "tremyr", "quadrimyr", "quintimyr", "sextimyr", "septimyr", "octimyr", "nonimyr", "ERROR"],
oneE4sA: ["", "Myr", "Dmr", "Tmr", "Qamr", "Qimr", "Sxmr", "Spmr", "Omr", "Nmr", "ERROR"],
oneE5s: ["", "centill", "ducentill", "trecentill", "quadringentill", "quingentill", "sescentill", "septingentill", "octingentill", "nongentill", "ERROR"],
oneE5sA: ["", "Ctll", "Dcll", "Tcll", "Qdgll", "Qgtll", "Sctll", "Sgtll", "Ogtll", "Ngtll", "ERROR"],
oneE6s: ["", "micr", "dumicr", "tremicr", "quadrimicr", "quintimicr", "sextimicr", "septimicr", "octimicr", "nonimicr", "ERROR"],
oneE6sA: ["", "Mcrl", "Dmcr", "Tmcr", "Qamcr", "Qimcr", "Sxmcr", "Spmcr", "Omcr", "Nmcr", "ERROR"],
oneE7s: ["", "microgint", "dumicrogint", "tremicrogint", "quadrimicrogint", "quintimicrogint", "sextimicrogint", "septimicrogint", "octimicrogint", "nonimicrogint", "ERROR"],
oneE7sA: ["", "Mcrg", "Dmgt", "Tmgt", "Qamgt", "Qimgt", "Sxmgt", "Spmgt", "Omgt", "Nmgt", "ERROR"],
oneE8s: ["", "cenmicr", "ducenmicr", "trecenmicr", "quadringenmicr", "quingenmicr", "sescenmicr", "septingenmicr", "octingenmicr", "nongenmicr", "ERROR"],
oneE8sA: ["", "Cnmcr", "Dcmcr", "Tcmcr", "Qdmcr", "Qgmcr", "Scmcr", "Sgmcr", "Ogmcr", "Ngmcr", "ERROR"],
oneE9s: ["", "nan", "dunan", "trenan", "quadrinan", "quintinan", "sextinan", "septinan", "octinan", "noninan", "ERROR"],
oneE9sA: ["", "Nan", "Dnn", "Tnn", "Qann", "Qinn", "Sxnn", "Spnn", "Onn", "Nnn", "ERROR"],
oneE10s: ["", "nanogint", "dunanogint", "trenanogint", "quadrinanogint", "quintinanogint", "sextinanogint", "septinanogint", "octinanogint", "noninanogint", "ERROR"],
oneE10sA: ["", "Nngt", "Dngt", "Tngt", "Qangt", "Qingt", "Sxngt", "Spngt", "Ongt", "Nngt", "ERROR"],
oneE11s: ["", "cennan", "ducennan", "trecennan", "quadringennan", "quingennan", "sescennan", "septingennan", "octingennan", "nongennan", "ERROR"],
oneE11sA: ["", "Cnnn", "Dcnn", "Tcnn", "Qdnn", "Qgnn", "Scnn", "Sgnn", "Ognn", "Ngnn", "ERROR"],
oneE12s: ["", "pic", "dupic", "trepic", "quadripic", "quintipic", "sextipic", "septipic", "octipic", "nonipic", "ERROR"],
oneE12sA: ["", "Pic", "Dpc", "Tpc", "Qapc", "Qipc", "Sxpc", "Sppc", "Opc", "Npc", "ERROR"],
oneE13s: ["", "picogint", "dupicogint", "trepicogint", "quadripicogint", "quintipicogint", "sextipicogint", "septipicogint", "octipicogint", "nonipicogint", "ERROR"],
oneE13sA: ["", "Pgnt", "Dpgt", "Tpgt", "Qapgt", "Qipgt", "Sxpgt", "Sppgt", "Opgt", "Npgt", "ERROR"],
oneE14s: ["", "cenpic", "ducenpic", "trecenpic", "quadringenpic", "quingenpic", "sescenpic", "septingenpic", "octingenpic", "nongenpic", "ERROR"],
oneE14sA: ["", "Cnpc", "Dcpc", "Tcpc", "Qdpc", "Qgpc", "Scpc", "Sgpc", "Ogpc", "Ngpc", "ERROR"],
oneE15s: ["", "femt", "dufemt", "trefemt", "quadrifemt", "quintifemt", "sextifemt", "septifemt", "octifemt", "nonifemt", "ERROR"],
oneE15sA: ["", "Fmt", "Dft", "Tft", "Qaft", "Qift", "Sxft", "Spft", "Oft", "Nft", "ERROR"],
oneE16s: ["", "femtogint", "dufemtogint", "trefemtogint", "quadrifemtogint", "quintifemtogint", "sextifemtogint", "septifemtogint", "octifemtogint", "nonifemtogint", "ERROR"],
oneE16sA: ["", "Fmtg", "Dftg", "Tftg", "Qaftg", "Qiftg", "Sxftg", "Spftg", "Oftg", "Nftg", "ERROR"],
oneE17s: ["", "cenfemt", "ducenfemt", "trecenfemt", "quadringenfemt", "quingenfemt", "sescenfemt", "septingenfemt", "octingenfemt", "nongenfemt", "ERROR"],
oneE17sA: ["", "Cnft", "Dcft", "Tcft", "Qdft", "Qgft", "Scft", "Sgft", "Ogft", "Ngft", "ERROR"],
oneE18s: ["", "att", "duatt", "treatt", "quadriatt", "quintiatt", "sextiatt", "septiatt", "octiatt", "noniatt", "ERROR"],
oneE18sA: ["", "Att", "Dat", "Tat", "Qaat", "Qiat", "Sxat", "Spat", "Oat", "Nat", "ERROR"],
oneE19s: ["", "attogint", "duattogint", "treattogint", "quadriattogint", "quintiattogint", "sextiattogint", "septiattogint", "octiattogint", "noniattogint", "ERROR"],
oneE19sA: ["", "Attg", "Datg", "Tatg", "Qaatg", "Qiatg", "Sxatg", "Spatg", "Oatg", "Natg", "ERROR"],
oneE20s: ["", "cenatt", "ducenatt", "trecenatt", "quadringenatt", "quingenatt", "sescenatt", "septingenatt", "octingenatt", "nongenatt", "ERROR"],
oneE20sA: ["", "Cnat", "Dcat", "Tcat", "Qdat", "Qgat", "Scat", "Sgat", "Ogat", "Ngat", "ERROR"],
oneE21s: ["", "zept", "duzept", "trezept", "quadrizept", "quintizept", "sextizept", "septizept", "octizept", "nonizept", "ERROR"],
oneE21sA: ["", "Zpt", "Dzp", "Tzp", "Qazp", "Qizp", "Sxzp", "Spzp", "Ozp", "Nzp", "ERROR"],
oneE22s: ["", "zeptogint", "duzeptogint", "trezeptogint", "quadrizeptogint", "quintizeptogint", "sextizeptogint", "septizeptogint", "octizeptogint", "nonizeptogint", "ERROR"],
oneE22sA: ["", "Zptg", "Dzpg", "Tzpg", "Qazpg", "Qizpg", "Sxzpg", "Spzpg", "Ozpg", "Nzpg", "ERROR"],
oneE23s: ["", "cenzept", "ducenzept", "trecenzept", "quadringenzept", "quingenzept", "sescenzept", "septingenzept", "octingenzept", "nongenzept", "ERROR"],
oneE23sA: ["", "Cnzt", "Dczt", "Tczt", "Qdzt", "Qgzt", "Sczt", "Sgzt", "Ogzt", "Ngzt", "ERROR"],
oneE24s: ["", "yoct", "duyoct", "treyoct", "quadriyoct", "quintiyoct", "sextiyoct", "septiyoct", "octiyoct", "noniyoct", "ERROR"],
oneE24sA: ["", "Yct", "Dyt", "Tyt", "Qayt", "Qiyt", "Sxyt", "Spyt", "Oyt", "Nyt", "ERROR"],
oneE25s: ["", "yoctogint", "duyoctogint", "treyoctogint", "quadriyoctogint", "quintiyoctogint", "sextiyoctogint", "septiyoctogint", "octiyoctogint", "noniyoctogint", "ERROR"],
oneE25sA: ["", "Yctg", "Dytg", "Tytg", "Qaytg", "Qiytg", "Sxytg", "Spytg", "Oytg", "Nytg", "ERROR"],
oneE26s: ["", "cenyoct", "ducenyoct", "trecenyoct", "quadringenyoct", "quingenyoct", "sescenyoct", "septingenyoct", "octingenyoct", "nongenyoct", "ERROR"],
oneE26sA: ["", "Cnyt", "Dcyt", "Tcyt", "Qdyt", "Qgyt", "Scyt", "Sgyt", "Ogyt", "Ngyt", "ERROR"],
oneE27s: ["", "xon", "duxon", "trexon", "quadrixon", "quintixon", "sextixon", "septixon", "octixon", "nonixon", "ERROR"],
oneE27sA: ["", "Xon", "Dxn", "Txn", "Qaxn", "Qixn", "Sxxn", "Spxn", "Oxn", "Nxn", "ERROR"],
oneE28s: ["", "xongint", "duxongint", "trexongint", "quadrixongint", "quintixongint", "sextixongint", "septixongint", "octixongint", "nonixongint", "ERROR"],
oneE28sA: ["", "Xngt", "Dxgt", "Txgt", "Qaxgt", "Qixgt", "Sxxgt", "Spxgt", "Oxgt", "Nxgt", "ERROR"],
oneE29s: ["", "cenxon", "ducenxon", "trecenxon", "quadringenxon", "quingenxon", "sescenxon", "septingenxon", "octingenxon", "nongenxon", "ERROR"],
oneE29sA: ["", "Cnxn", "Dcxn", "Tcxn", "Qdxn", "Qgxn", "Scxn", "Sgxn", "Ogxn", "Ngxn", "ERROR"],
oneE30s: ["", "vec", "duvec", "trevec", "quadrivec", "quintivec", "sextivec", "septivec", "octivec", "nonivec", "ERROR"],
oneE30sA: ["", "Vec", "Dvc", "Tvc", "Qavc", "Qivc", "Sxvc", "Spvc", "Ovc", "Nvc", "ERROR"],
oneE31s: ["", "vecgint", "duvecgint", "trevecgint", "quadrivecgint", "quintivecgint", "sextivecgint", "septivecgint", "octivecgint", "nonivecgint", "ERROR"],
oneE31sA: ["", "Vcgt", "Dvgt", "Tvgt", "Qavgt", "Qivgt", "Sxvgt", "Spvgt", "Ovgt", "Nvgt", "ERROR"],
oneE32s: ["", "cenvec", "ducenvec", "trecenvec", "quadringenvec", "quingenvec", "sescenvec", "septingenvec", "octingenvec", "nongenvec", "ERROR"],
oneE32sA: ["", "Cnvc", "Dcvc", "Tcvc", "Qdvc", "Qgvc", "Scvc", "Sgvc", "Ogvc", "Ngvc", "ERROR"],
oneE33s: ["", "mec", "dumec", "tremec", "quadrimec", "quintimec", "sextimec", "septimec", "octimec", "nonimec", "ERROR"],
oneE33sA: ["", "Mec", "Dmc", "Tmc", "Qamc", "Qimc", "Sxmc", "Spmc", "Omc", "Nmc", "ERROR"],
oneE34s: ["", "mecgint", "dumecgint", "tremecgint", "quadrimecgint", "quintimecgint", "sextimecgint", "septimecgint", "octimecgint", "nonimecgint", "ERROR"],
oneE34sA: ["", "Mcgt", "Dmgt", "Tmgt", "Qamgt", "Qimgt", "Sxmgt", "Spmgt", "Omgt", "Nmgt", "ERROR"],
oneE35s: ["", "cenmec", "ducenmec", "trecenmec", "quadringenmec", "quingenmec", "sescenmec", "septingenmec", "octingenmec", "nongenmec", "ERROR"],
oneE35sA: ["", "Cnmc", "Dcmc", "Tcmc", "Qdmc", "Qgmc", "Scmc", "Sgmc", "Ogmc", "Ngmc", "ERROR"],
oneE36s: ["", "duec", "duduec", "treduec", "quadriduec", "quintiduec", "sextiduec", "septiduec", "octiduec", "noniduec", "ERROR"],
oneE36sA: ["", "Due", "Ddc", "Tdc", "Qadc", "Qidc", "Sxdc", "Spdc", "Odc", "Ndc", "ERROR"],
oneE37s: ["", "duecgint", "duduecgint", "treduecgint", "quadriduecgint", "quintiduecgint", "sextiduecgint", "septiduecgint", "octiduecgint", "noniduecgint", "ERROR"],
oneE37sA: ["", "Dcgt", "Ddgt", "Tdgt", "Qadgt", "Qidgt", "Sxdgt", "Spdgt", "Odgt", "Ndgt", "ERROR"],
oneE38s: ["", "cenduec", "ducenduec", "trecenduec", "quadringenduec", "quingenduec", "sescenduec", "septingenduec", "octingenduec", "nongenduec", "ERROR"],
oneE38sA: ["", "Cndc", "Dcdc", "Tcdc", "Qddc", "Qgdc", "Scdc", "Sgdc", "Ogdc", "Ngdc", "ERROR"],
oneE39s: ["", "trec", "dutrec", "tretrec", "quadritrec", "quintitrec", "sextitrec", "septitrec", "octitrec", "nonitrec", "ERROR"],
oneE39sA: ["", "Trec", "Dtrc", "Ttrc", "Qatrc", "Qitrc", "Sxtrc", "Sptrc", "Otrc", "Ntrc", "ERROR"],
oneE40s: ["", "trecgint", "dutrecgint", "tretrecgint", "quadritrecgint", "quintitrecgint", "sextitrecgint", "septitrecgint", "octitrecgint", "nonitrecgint", "ERROR"],
oneE40sA: ["", "Trgt", "Dtrgt", "Ttrgt", "Qatrgt", "Qitrgt", "Sxtrgt", "Sptrgt", "Otrgt", "Ntrgt", "ERROR"],
oneE41s: ["", "centrec", "ducentrec", "trecentrec", "quadringentrec", "quingentrec", "sescentrec", "septingentrec", "octingentrec", "nongentrec", "ERROR"],
oneE41sA: ["", "Cntrc", "Dctrc", "Tctrc", "Qdtrc", "Qgtrc", "Sctrc", "Sgtrc", "Ogtrc", "Ngtrc", "ERROR"],
oneE42s: ["", "tetrec", "dutetrec", "tretetrec", "quadritetrec", "quintitetrec", "sextitetrec", "septitetrec", "octitetrec", "nonitetrec", "ERROR"],
oneE42sA: ["", "Ttrc", "Dttc", "Tttc", "Qattc", "Qittc", "Sxttc", "Spttc", "Ottc", "Nttc", "ERROR"],
oneE43s: ["", "tetrecgint", "dutetrecgint", "tretetrecgint", "quadritetrecgint", "quintitetrecgint", "sextitetrecgint", "septitetrecgint", "octitetrecgint", "nonitetrecgint", "ERROR"],
oneE43sA: ["", "Ttgt", "Dttgt", "Tttgt", "Qattgt", "Qittgt", "Sxttgt", "Spttgt", "Ottgt", "Nttgt", "ERROR"],
oneE44s: ["", "centetrec", "ducentetrec", "trecentetrec", "quadringentetrec", "quingentetrec", "sescentetrec", "septingentetrec", "octingentetrec", "nongentetrec", "ERROR"],
oneE44sA: ["", "Cnttc", "Dcttc", "Tcttc", "Qdttc", "Qgttc", "Scttc", "Sgttc", "Ogttc", "Ngttc", "ERROR"],
oneE45s: ["", "pentec", "dupentec", "trepentec", "quadripentec", "quintipentec", "sextipentec", "septipentec", "octipentec", "nonipentec", "ERROR"],
oneE45sA: ["", "Pntc", "Dptc", "Tptc", "Qaptc", "Qiptc", "Sxptc", "Spptc", "Optc", "Nptc", "ERROR"],
oneE46s: ["", "pentecgint", "dupentecgint", "trepentecgint", "quadripentecgint", "quintipentecgint", "sextipentecgint", "septipentecgint", "octipentecgint", "nonipentecgint", "ERROR"],
oneE46sA: ["", "Ptgt", "Dptg", "Tptg", "Qaptg", "Qiptg", "Sxptg", "Spptg", "Optg", "Nptg", "ERROR"],
oneE47s: ["", "cenpentec", "ducenpentec", "trecenpentec", "quadringenpentec", "quingenpentec", "sescenpentec", "septingenpentec", "octingenpentec", "nongenpentec", "ERROR"],
oneE47sA: ["", "Cnpt", "Dcpt", "Tcpt", "Qdpt", "Qgpt", "Scpt", "Sgpt", "Ogpt", "Ngpt", "ERROR"],
oneE48s: ["", "hexec", "duhexec", "trehexec", "quadrihexec", "quintihexec", "sextihexec", "septihexec", "octihexec", "nonihexec", "ERROR"],
oneE48sA: ["", "Hxc", "Dhx", "Thx", "Qahx", "Qihx", "Sxhx", "Sphx", "Ohx", "Nhx", "ERROR"],
oneE49s: ["", "hexecgint", "duhexecgint", "trehexecgint", "quadrihexecgint", "quintihexecgint", "sextihexecgint", "septihexecgint", "octihexecgint", "nonihexecgint", "ERROR"],
oneE49sA: ["", "Hxgt", "Dhxgt", "Thxgt", "Qahxgt", "Qihxgt", "Sxhxgt", "Sphxgt", "Ohxgt", "Nhxgt", "ERROR"],
oneE50s: ["", "cenhexec", "ducenhexec", "trecenhexec", "quadringenhexec", "quingenhexec", "sescenhexec", "septingenhexec", "octingenhexec", "nongenhexec", "ERROR"],
oneE50sA: ["", "Chxc", "Dchx", "Tchx", "Qdhx", "Qghx", "Schx", "Sghx", "Oghx", "Nghx", "ERROR"],
oneE51s: ["", "heptec", "duheptec", "treheptec", "quadriheptec", "quintiheptec", "sextiheptec", "septiheptec", "octiheptec", "noniheptec", "ERROR"],
oneE51sA: ["", "Htc", "Dht", "Tht", "Qaht", "Qiht", "Sxht", "Spht", "Oht", "Nht", "ERROR"],
oneE52s: ["", "heptecgint", "duheptecgint", "treheptecgint", "quadriheptecgint", "quintiheptecgint", "sextiheptecgint", "septiheptecgint", "octiheptecgint", "noniheptecgint", "ERROR"],
oneE52sA: ["", "Htgt", "Dhtgt", "Thtgt", "Qahtgt", "Qihtgt", "Sthtgt", "Sphtgt", "Ohtgt", "Nhtgt", "ERROR"],
oneE53s: ["", "cenheptec", "ducenheptec", "trecenheptec", "quadringenheptec", "quingenheptec", "sescenheptec", "septingenheptec", "octingenheptec", "nongenheptec", "ERROR"],
oneE53sA: ["", "Chtc", "Dcht", "Tcht", "Qdht", "Qght", "Scht", "Sght", "Oght", "Nght", "ERROR"],
oneE54s: ["", "octec", "duoctec", "treoctec", "quadrioctec", "quintioctec", "sextioctec", "septioctec", "octioctec", "nonioctec", "ERROR"],
oneE54sA: ["", "Otc", "Dot", "Tot", "Qaot", "Qiot", "Sxot", "Spot", "Oot", "Not", "ERROR"],
oneE55s: ["", "octecgint", "duoctecgint", "treoctecgint", "quadrioctecgint", "quintioctecgint", "sextioctecgint", "septioctecgint", "octioctecgint", "nonioctecgint", "ERROR"],
oneE55sA: ["", "Ocgt", "Dogt", "Togt", "Qaogt", "Qiogt", "Sxogt", "Spogt", "Oogt", "Nogt", "ERROR"],
oneE56s: ["", "cenoctec", "ducenoctec", "trecenoctec", "quadringenoctec", "quingenoctec", "sescenoctec", "septingenoctec", "octingenoctec", "nongenoctec", "ERROR"],
oneE56sA: ["", "Cnoc", "Dcoc", "Tcoc", "Qdoc", "Qgoc", "Scoc", "Sgoc", "Ogoc", "Ngoc", "ERROR"],
oneE57s: ["", "ennec", "duennec", "treennec", "quadriennec", "quintiennec", "sextiennec", "septiennec", "octiennec", "noniennec", "ERROR"],
oneE57sA: ["", "Enc", "Dnc", "Tnc", "Qanc", "Qinc", "Sxnc", "Spnc", "Onc", "Nnc", "ERROR"],
oneE58s: ["", "ennecgint", "duennecgint", "treennecgint", "quadriennecgint", "quintiennecgint", "sextiennecgint", "septiennecgint", "octiennecgint", "noniennecgint", "ERROR"],
oneE58sA: ["", "Engt", "Degt", "Tegt", "Qaegt", "Qiegt", "Sxegt", "Spegt", "Oegt", "Negt", "ERROR"],
oneE59s: ["", "cenennec", "ducenennec", "trecenennec", "quadringenennec", "quingenennec", "sescenennec", "septingenennec", "octingenennec", "nongenennec", "ERROR"],
oneE59sA: ["", "Cnen", "Dcen", "Tcen", "Qden", "Qgen", "Scen", "Sgen", "Ogen", "Ngen", "ERROR"],
oneE60s: ["", "icos", "duicos", "treicos", "quadricos", "quinticos", "sexticos", "septicos", "octicos", "nonicos", "ERROR"],
oneE60sA: ["", "Icos", "Dics", "Tics", "Qaics", "Qiics", "Sxics", "Stics", "Oics", "Nics", "ERROR"],
oneE61s: ["", "icosgint", "duicosgint", "treicosgint", "quadricosgint", "quinticosgint", "sexticosgint", "septicosgint", "octicosgint", "nonicosgint", "ERROR"],
oneE61sA: ["", "Icgt", "Digt", "Tigt", "Qaigt", "Qiigt", "Sxigt", "Spigt", "Oigt", "Noigt", "ERROR"],
oneE62s: ["", "cenicos", "ducenicos", "trecenicos", "quadringenicos", "quingenicos", "sescenicos", "septingenicos", "octingenicos", "nongenicos", "ERROR"],
oneE62sA: ["", "Cnic", "Dcic", "Tcic", "Qdic", "Qgic", "Scic", "Sgic", "Ogic", "Ngic", "ERROR"],
oneE63s: ["", "meicos", "dumeicos", "tremeicos", "quadrimeicos", "quintimeicos", "sextimeicos", "septimeicos", "octimeicos", "nonimeicos", "ERROR"],
oneE63sA: ["", "Mics"].concat(["D","T","Qa","Qi","Sx","Sp","O","N"].map(x => x + "mcs")).concat(["ERROR"]),
oneE64s: ["", "meicosgint", "dumeicosgint", "tremeicosgint", "quadrimeicosgint", "quintimeicosgint", "sextimeicosgint", "septimeicosgint", "octimeicosgint", "nonimeicosgint", "ERROR"],
oneE64sA: ["", "Micg"].concat(["D","T","Qa","Qi","Sx","Sp","O","N"].map(x => x + "mcg")).concat(["ERROR"]),
oneE65s: ["", "cenmeicos", "ducenmeicos", "trecenmeicos", "quadringenmeicos", "quingenmeicos", "sescenmeicos", "septingenmeicos", "octingenmeicos", "nongenmeicos", "ERROR"],
oneE65sA: ["", "Cmcs"].concat(["Dc","Tc","Qd","Qg","Sc","Sg","Og","Ng"].map(x => x + "mc")).concat(["ERROR"]),
oneE66s: ["", "dueicos", "dudueicos", "tredueicos", "quadridueicos", "quintidueicos", "sextidueicos", "septidueicos", "octidueicos", "nonidueicos", "ERROR"],
oneE66sA: ["", "Decs"].concat(["D","T","Qa","Qi","Sx","Sp","O","N"].map(x => x + "decs")).concat(["ERROR"]), //haha it says dics, laugh all you want; i really don't care at this point
oneE67s: ["", "dueicosgint", "dudueicosgint", "tredueicosgint", "quadridueicosgint", "quintidueicosgint", "sextidueicosgint", "septidueicosgint", "octidueicosgint", "nonidueicosgint", "ERROR"],
oneE67sA: ["", "Dicg"].concat(["D","T","Qa","Qi","Sx","Sp","O","N"].map(x => x + "dcg")).concat(["ERROR"]),
oneE68s: ["", "cendueicos", "ducendueicos", "trecendueicos", "quadringendueicos", "quingendueicos", "sescendueicos", "septingendueicos", "octingendueicos", "nongendueicos", "ERROR"],
oneE68sA: ["","Cdcs"].concat(["Dc","Tc","Qd","Qg","Sc","Sg","Og","Ng"].map(x => x + "dcs")).concat(["ERROR"])
/*oneE69s: ["", "trioicos", "dutrioicos", "tretrioicos", "quadritrioicos", "quintitrioicos", "sextitrioicos", "septitrioicos", "octitrioicos", "nonitrioicos", "ERROR"],
oneE69sA:
oneE70s: ["", "trioicosgint", "dutrioicosgint", "tretrioicosgint", "quadritrioicosgint", "quintitrioicosgint", "sextitrioicosgint", "septitrioicosgint", "octitrioicosgint", "nonitrioicosgint", "ERROR"],
oneE70sA:
oneE71s: ["", "centrioicos", "ducentrioicos", "trecentrioicos", "quadringentrioicos", "quingentrioicos", "sescentrioicos", "septingentrioicos", "octingentrioicos", "nongentrioicos", "ERROR"],
oneE71sA:
oneE72s: ["", "tetreicos", "dutetreicos", "tretetreicos", "quadritetreicos", "quintitetreicos", "sextitetreicos", "septitetreicos", "octitetreicos", "nonitetreicos", "ERROR"],
oneE72sA:
oneE73s: ["", "tetreicosgint", "dutetreicosgint", "tretetreicosgint", "quadritetreicosgint", "quintitetreicosgint", "sextitetreicosgint", "septitetreicosgint", "octitetreicosgint", "nonitetreicosgint", "ERROR"],
oneE73sA:
oneE74s: ["", "centetreicos", "ducentetreicos", "trecentetreicos", "quadringentetreicos", "quingentetreicos", "sescentetreicos", "septingentetreicos", "octingentetreicos", "nongentetreicos", "ERROR"],
oneE74sA:
oneE75s: ["", "penteicos", "dupenteicos", "trepenteicos", "quadripenteicos", "quintipenteicos", "sextipenteicos", "septipenteicos", "octipenteicos", "nonipenteicos", "ERROR"],
oneE75sA:
oneE76s: ["", "penteicosgint", "dupenteicosgint", "trepenteicosgint", "quadripenteicosgint", "quintipenteicosgint", "sextipenteicosgint", "septipenteicosgint", "octipenteicosgint", "nonipenteicosgint", "ERROR"],
oneE76sA:
oneE77s: ["", "cenpenteicos", "ducenpenteicos", "trecenpenteicos", "quadringenpenteicos", "quingenpenteicos", "sescenpenteicos", "septingenpenteicos", "octingenpenteicos", "nongenpenteicos", "ERROR"],
oneE77sA:
oneE78s: ["", "hexeicos", "duhexeicos", "trehexeicos", "quadrihexeicos", "quintihexeicos", "sextihexeicos", "septihexeicos", "octihexeicos", "nonihexeicos", "ERROR"],
oneE78sA:
oneE79s: ["", "hexeicosgint", "duhexeicosgint", "trehexeicosgint", "quadrihexeicosgint", "quintihexeicosgint", "sextihexeicosgint", "septihexeicosgint", "octihexeicosgint", "nonihexeicosgint", "ERROR"],
oneE79sA:
oneE80s: ["", "cenhexeicos", "ducenhexeicos", "trecenhexeicos", "quadringenhexeicos", "quingenhexeicos", "sescenhexeicos", "septingenhexeicos", "octingenhexeicos", "nongenhexeicos", "ERROR"],
oneE80sA:
oneE81s: ["", "hepteicos", "duhepteicos", "trehepteicos", "quadrihepteicos", "quintihepteicos", "sextihepteicos", "septihepteicos", "octihepteicos", "nonihepteicos", "ERROR"],
oneE81sA:
oneE82s: ["", "hepteicosgint", "duhepteicosgint", "trehepteicosgint", "quadrihepteicosgint", "quintihepteicosgint", "sextihepteicosgint", "septihepteicosgint", "octihepteicosgint", "nonihepteicosgint", "ERROR"],
oneE82sA:
oneE83s: ["", "cenhepteicos", "ducenhepteicos", "trecenhepteicos", "quadringenhepteicos", "quingenhepteicos", "sescenhepteicos", "septingenhepteicos", "octingenhepteicos", "nongenhepteicos", "ERROR"],
oneE83sA:
oneE84s: ["", "octeicos", "duocteicos", "treocteicos", "quadriocteicos", "quintiocteicos", "sextiocteicos", "septiocteicos", "octiocteicos", "noniocteicos", "ERROR"],
oneE84sA:
oneE85s: ["", "octeicosgint", "duocteicosgint", "treocteicosgint", "quadriocteicosgint", "quintiocteicosgint", "sextiocteicosgint", "septiocteicosgint", "octiocteicosgint", "noniocteicosgint", "ERROR"],
oneE85sA:
oneE86s: ["", "cenocteicos", "ducenocteicos", "trecenocteicos", "quadringenocteicos", "quingenocteicos", "sescenocteicos", "septingenocteicos", "octingenocteicos", "nongenocteicos", "ERROR"],
oneE86sA:
oneE87s: ["", "enneicos", "duenneicos", "treenneicos", "quadrienneicos", "quintienneicos", "sextienneicos", "septienneicos", "octienneicos", "nonienneicos", "ERROR"],
oneE87sA:
oneE88s: ["", "enneicosgint", "duenneicosgint", "treenneicosgint", "quadrienneicosgint", "quintienneicosgint", "sextienneicosgint", "septienneicosgint", "octienneicosgint", "nonienneicosgint", "ERROR"],
oneE88sA:
oneE89s: ["", "cenenneicos", "ducenenneicos", "trecenenneicos", "quadringenenneicos", "quingenenneicos", "sescenenneicos", "septingenenneicos", "octingenenneicos", "nongenenneicos", "ERROR"],
oneE89sA: ["", "", "", "", "", "", "", "", "", ""]*/
};
/*
//Automatic mecillionoid root generation (meta)
//var abbreviationPlaceholder = null,
var abbreviationPlaceholder = ["","","","","","","","","",""];
var place = 60n;
var infix = "icos"
var higherMecillionoidArray = ["", "me", "due", "trio", "tetre", "pente", "hexe", "hepte", "octe", "enne"];
var mecillionoidOneoidSubroots = ["_qs_", "du_qs_", "tre_qs_", "quadri_qs_", "quinti_qs_", "sexti_qs_", "septi_qs_", "octi_qs_", "noni_qs_",];
var mecillionoidDecoidSubroots = ["_qs_gint", "du_qs_gint", "tre_qs_gint", "quadri_qs_gint", "quinti_qs_gint", "sexti_qs_gint", "septi_qs_gint", "octi_qs_gint", "noni_qs_gint"];
var mecillionoidCentoidSubroots = ["cen_qs_", "ducen_qs_", "trecen_qs_", "quadringen_qs_", "quingen_qs_", "sescen_qs_", "septingen_qs_", "octingen_qs_", "nongen_qs_"];
for(i = 0n; i < BigInt(higherMecillionoidArray.length); i++) {
var whichMecillionoid = higherMecillionoidArray[i] + infix;
//Oneoids
var mecillionoidOneoids = [""];
for(j = 0n; j < BigInt(mecillionoidOneoidSubroots.length); j++) {
var subroot = mecillionoidOneoidSubroots[j];
var newIllionRoot = subroot.replace("_qs_", whichMecillionoid);
mecillionoidOneoids.push(newIllionRoot);
};
mecillionoidOneoids.push("ERROR");
rootObject[`oneE${place}s`] = mecillionoidOneoids;
rootObject[`oneE${place}sA`] = abbreviationPlaceholder;
place++;
//Decoids
var mecillionoidDecoids = [""];
for(j = 0n; j < BigInt(mecillionoidDecoidSubroots.length); j++) {
var subroot = mecillionoidDecoidSubroots[j];
var newIllionRoot = subroot.replace("_qs_", whichMecillionoid).replace(/i+/g, "i");
mecillionoidDecoids.push(newIllionRoot);
};
mecillionoidDecoids.push("ERROR");
rootObject[`oneE${place}s`] = mecillionoidDecoids;
rootObject[`oneE${place}sA`] = abbreviationPlaceholder;
place++;
//Centoids
var mecillionoidCentoids = [""];
for(j = 0n; j < BigInt(mecillionoidCentoidSubroots.length); j++) {
var subroot = mecillionoidCentoidSubroots[j];
var newIllionRoot = subroot.replace("_qs_", whichMecillionoid);
mecillionoidCentoids.push(newIllionRoot);
};
mecillionoidCentoids.push("ERROR");
rootObject[`oneE${place}s`] = mecillionoidCentoids;
rootObject[`oneE${place}sA`] = abbreviationPlaceholder;
place++;
};
*/
//Test array to see if the object-iteration based code works properly
/*oneE36s: ["", "sus", "vent", "among", "impost", "red", "skeld", "electr", "emerg", "deadbod", "ERROR"],
oneE36sA: ["", "Sus", "Vnt", "Amg", "Imp", "Red", "Skd", "Ect", "Emr", "Dbd", "ERROR"]*/
var rootIndexBound = (BigInt(Object.keys(rootObject).length) / 2n) - 2n //intended in for loops to be used with <= and a zero index
function genIllionHTML() { //this code is horrendous
getWhichIllion();
//getSuffix();
getCapitalize();
getAbbreviationStatus();
getMyllionStatus();
getValueStatus();
getLongScaleStatus();
getDividerStatus();
var ttpe = "<span class=\"hidden\"> to the power of </span>";
var ttpec = "<span class=\"hidden\"> to the power of, </span>";
var way = "<span class=\"hidden\">with a Y</span>";
var index = whichIllion - 1n;
if(index == 9n) { //fix error on nonillion by just manually setting the index to the correct value when 9 is specified
index = 8n; //this means that it goes from 8 to 10, which should set the mood for the rest of this code if the rows of hardcoded root arrays didn't already do so
};
console.log(index);
var illion = "";
if(index < 0n) {
illion = (useMyllions ? (capitalizeIllionNames ? "Myriad" : "myriad") : (capitalizeIllionNames ? "Thousand" : "thousand"));
abbrevIllion = (useMyllions ? "M" : "K");
illionValue = (useMyllions ? 4n : 3n);
// if(illionSuffix === null) {
// illionSuffix = "";
// };
illionHTML = `<span class='oneIllion full'>${illion}</span>`;
htmlJoiner = "<br/>\n";
abbrevHTML = `<span class='oneIllion abbreviation'>${abbrevIllion}</span>`;
valueHTML = `<span class='oneIllion value'>10${ttpe}<sup>${illionValue}</sup></span>`;
finalIllion = illionHTML
if(showAbbreviation) {
finalIllion += (htmlJoiner + abbrevHTML);
};
if(showValue) {
finalIllion += (htmlJoiner + valueHTML);
};
return finalIllion;
} else if(index <= 9n) {
illion = (useMyllions ? rootObject.first9M[index] : rootObject.first9[index]);
abbrevIllion = rootObject.first9A[index] + (useMyllions ? "y" : "");
illionValue = (useMyllions ? 2n ** (index + 3n) : (useLongScale ? (6n * (index + 1n)) : (3n * (index + 1n) + 3n)));
if(capitalizeIllionNames) {
illion = capitalizeFirstLetter(illion);
};
// if(illionSuffix === null) {
// illionSuffix = "";
// };
illionHTML = `<span class='oneIllion full'>${illion}</span>`;
htmlJoiner = "<br/>\n";
abbrevHTML = `<span class='oneIllion abbreviation'>${abbrevIllion}</span>`;
valueHTML = `<span class='oneIllion value'>10${ttpe}<sup>${illionValue}</sup></span>`;
finalIllion = illionHTML
if(showAbbreviation) {
finalIllion += (htmlJoiner + abbrevHTML);
};
if(showValue) {
finalIllion += (htmlJoiner + valueHTML);
};
return finalIllion;
} else if(index >= 10n) {
yllionTooBig = (useMyllions && index > 512n);
illionValue = (useMyllions ? (yllionTooBig ? index + 2n : 2n ** (index + 2n)) : (useLongScale ? (6n * index) : ((3n * index) + 3n)));
//Generator logic
//Generate place list object generated from number
var placeObject = {};
for(placeIndex = 0n; placeIndex <= rootIndexBound; placeIndex++) {
var placeName = `oneE${placeIndex}sPlace`;
var powerOfTenDivisor = 10n ** placeIndex;
placeObject[placeName] = (index / powerOfTenDivisor) % 10n; //BigInt division already truncates decimals
}; //Place values in places gotten to placeObject
//Select roots from arrays in root object based on digits from previous step;
illionRootList = {};
abbrevIllionRootList = {};
for(placeIndex2 = 0n; placeIndex2 <= rootIndexBound; placeIndex2++) {
var placeNameForRootListObject = `illionOneE${placeIndex2}s`;
var placeNameForAbbrevRootListObject = `abbrevIllionOneE${placeIndex2}s`;
var placeNameForPlaceObject = `oneE${placeIndex2}sPlace`;
var placeValue = placeObject[placeNameForPlaceObject];
var rootArrayName = `oneE${placeIndex2}s`;
var rootAbbrevArrayName = `oneE${placeIndex2}sA`;
var rootArray = rootObject[rootArrayName];
var abbrevRootArray = rootObject[rootAbbrevArrayName];
var wordRoot = rootArray[placeValue];
var abbrevRoot = abbrevRootArray[placeValue];
illionRootList[placeNameForRootListObject] = wordRoot;
abbrevIllionRootList[placeNameForAbbrevRootListObject] = abbrevRoot;
}; //Word roots (determined with places and their values from placeObject) gotten to illionRootList
//Hard-coded tre/tres check for ones
if(illionRootList.illionOneE0s.endsWith("tre")) {
if(!illionRootList.illionOneE1s.startsWith("d") && !illionRootList.illionOneE1s.startsWith("s")) { //tre is not tres before d, and not as many people double the S
illionRootList.illionOneE0s = "tres";
//this entire code block is basically so we can use trescentillion for 103-illion and trecentillion for 300-illion
};
};
for(decDeciCheckIndex = 1n; decDeciCheckIndex < rootIndexBound; decDeciCheckIndex++) { //a pattern of non-final roots after the ones being joined with "i"
var rootToCheck = illionRootList[`illionOneE${decDeciCheckIndex}s`];
var conditionPowerOfTen = 10n ** (decDeciCheckIndex + 1n);
//var whichIllion = index + 1n;
if(whichIllion > conditionPowerOfTen && rootToCheck !== "") {
rootToCheck += "i";
illionRootList[`illionOneE${decDeciCheckIndex}s`] = rootToCheck;
};
};
//console.log("forming illion word");
_illionDivider_ = (showDividers ? "<span class='full-divider'>|</span>" : "");
_abbrevDivider_ = (showDividers ? "<span class='abbreviation-divider'>|</span>" : "");
var illion = Object.values(illionRootList); illion.push(useMyllions ? "yllion" : "illion"); illion = illion.join(_illionDivider_);
var abbrevIllion = Object.values(abbrevIllionRootList).join(_abbrevDivider_) + (useMyllions ? "y" : ""); //abbreviation system (just tack on a y) pulled completely out of my ass because there is no established abbreviation system for -yllions
if(capitalizeIllionNames) {
illion = capitalizeFirstLetter(illion);
};
illionHTML = `<span class='oneIllion full'>${illion}</span>`;
htmlJoiner = "<br/>\n";
abbrevHTML = `<span class='oneIllion abbreviation'>${abbrevIllion}</span>`;
valueHTML = (yllionTooBig ? `<span class='oneIllion value'>10${ttpec}<sup>2${ttpe}<sup>${illionValue}</sup></sup></span>` : `<span class='oneIllion value'>10${ttpe}<sup>${illionValue}</sup></span>`);
finalIllion = illionHTML
if(showAbbreviation) {
finalIllion += (htmlJoiner + abbrevHTML);
};
if(showValue) {
finalIllion += (htmlJoiner + valueHTML);
};
return finalIllion;
};
};
function generateText() {
document.getElementById("resultDiv").innerHTML = genIllionHTML()
}
</script>
<br/><a href="index.html"><small>go to main page</small></a>
</body>
</html>