Open haykam821 opened 3 months ago
Interesting, I didn't know overlines were used for larger numbers. I agree this would probably make sense to implement.
For now I've implemented an upper bound of 100,000, which prevents the REPL from freezing or running out of memory. Adding support for larger numbers with different notation would obviously still be a good idea :)
When converting numbers to Roman numerals, the maximum Roman numeral implemented is
M
:Sufficiently big numbers over 1,000 can result in the REPL freezing, and the maximum Roman numeral representation is over 4 million characters long.
Would it make sense to use the overline to represent larger quantities? For example, a combining overline would give a larger buffer before the output becomes nonsense, and a combining double overline would give an even larger buffer.