StringToInteger

Convert your string to integer


Keywords
integer, library, python, python1, python2, python27, python3, string, string-manipulation
License
MIT
Install
pip install StringToInteger==1.0.1

Documentation

String-to-Integer-for-Python

Example code:

import StrToInt as sti

sti1 = sti.StrToInt("1")
sti2 = sti.StrToInt("1132")
sti3 = sti.StrToInt("nine")
print(sti1)
print(sti2)
print(sti3)

Output:

1
1132
9

Library can be used with Python 2 and 3