Skip to content

Commit d62bc86

Browse files
authored
Update Solution.py
1 parent c8e4752 commit d62bc86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

solution/0008.String to Integer(atoi)/Solution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def myAtoi(self, s):
1818

1919
Num = 0
2020
for i in s:
21+
if i == '.':
22+
break
2123
Num *= 10
2224
Num += Digits[i]
2325

0 commit comments

Comments
 (0)