• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
+ 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

php
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

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Where is the bug?
3 Votes
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
Pointers cpp
2 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
1 Votes
How to add two strings together in ts or css
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
Why can’t I use double “ in python?
0 Votes
Is pro worth the money ?
1 Votes
Drawing images in java
2 Votes
2 cases not correct what's the problem
1 Votes