New answers tagged

0 votes

Converting Strings to Decimals (Gone Wrong)

JavaScript (Node.js), 41 bytes f=s=>s[0]?Buffer(s.pop())[0]-48+f(s)*10:0 Try it online! Takes input as an array of characters.
Justin Mariner's user avatar
0 votes

Converting Strings to Decimals (Gone Wrong)

Pip, 9 bytes A*a-48FDt Try It Online! Explanation ...
DLosc's user avatar
  • 39.4k

Top 50 recent answers are included