Gets the name of a number, even if it's stupidly big. Supersedes TheoryOfNekomata/number-name.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

16 rindas
477 B

  1. type GroupDigits = string;
  2. type GroupPlace = number;
  3. export type Group = [GroupDigits, GroupPlace];
  4. export interface StringifySystem {
  5. makeNegative: (s: string) => string;
  6. makeGroup: (group: string, place?: GroupPlace, options?: Record<string, unknown>) => string;
  7. group: (value: string) => Group[];
  8. finalize: (tokens: string[]) => string;
  9. tokenize: (value: string) => string[];
  10. parseGroups: (value: string[]) => Group[];
  11. combineGroups: (value: Group[]) => string;
  12. }