RosettaCodeData/Task/Increment-a-numerical-string/Sparkling/increment-a-numerical-string.sparkling

7 lines
104 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
function numStrIncmt(s) {
return fmtstr("%d", toint(s) + 1);
}
spn:1> numStrIncmt("12345")
= 12346