You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting numbers to Roman numerals, the maximum Roman numeral implemented is M:
> 10000 to roman
MMMMMMMMMM
> 100000 to roman
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
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.
The text was updated successfully, but these errors were encountered:
haykam821
changed the title
Roman numerals don
Roman numerals don't scale well beyond 1,000
Mar 15, 2024
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.
The text was updated successfully, but these errors were encountered: