Prise en compte des nombres avec espaces
This commit is contained in:
parent
84b57b66bb
commit
9bd890b90c
@ -218,7 +218,7 @@ $(function () {
|
|||||||
}
|
}
|
||||||
else if (!isNaN(parseInt(numbersValue))) {
|
else if (!isNaN(parseInt(numbersValue))) {
|
||||||
let result = convertRomanArabicNumbers(parseFloat(numbersValue.replace(/\s/g,'')));
|
let result = convertRomanArabicNumbers(parseFloat(numbersValue.replace(/\s/g,'')));
|
||||||
$('.results').html(`<b>${numbersValue}</b> s'écrit <b>${result}</b> en chiffres romains.`);
|
$('.results').html(`<b>${formatNumberResult(numbersValue.replace(/\s/g,''))}</b> s'écrit <b>${result}</b> en chiffres romains.`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('.results').html(messageError);
|
$('.results').html(messageError);
|
||||||
|
Reference in New Issue
Block a user