Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
tonela10 committed May 14, 2024
1 parent 39fd47d commit 0baea7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implementation/romans.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const convertIntegerToRoman = (num) => {
let str = '';
const digits = String(num).split('').reverse();
digits.forEach((digit, index) => {
str = digitToRoman(digit, 10 ** index, mapping) + str;
str = digitToRoman(digit, 10 * index, mapping) + str;
});

response.value = str;
Expand Down

0 comments on commit 0baea7f

Please sign in to comment.