+ 1

Why this result ?

Return value is 1. Why ? The string is '12,34' (with a coma, not dot) Thanks https://code.sololearn.com/wM6Fy2Yhy775/?ref=app

6th Dec 2018, 1:35 PM
S K Lurk //\●●/\\
S K Lurk //\●●/\\ - avatar
1 Resposta
+ 6
you need a '\' before '.' because it matches any character https://www.sololearn.com/learn/9670/?ref=app
6th Dec 2018, 2:43 PM
Mert Yazıcı
Mert Yazıcı - avatar