Published
Edited
Sep 1, 2022
A Nifty Algorithm for Converting Positive Integers to Roman Numerals
A Dead Simple Algorithm for Converting Positive Integers to Roman Numerals
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
year = romanizeNumber(2022)
Insert cell
digits = splitDigits(2022)
Insert cell
quad4 = romanizeNumber(4444)
Insert cell
forty = romanizeDigit(4, 1)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more