File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 * Indian system uses crore, lakh, thousand and not million and billions
55
66For the part after the decimal example ( .159 ):
7- * Digit by digit ( .159 ) -> point one five nine is allowed anything else will throw an error
7+ * Digit by digit ( .159 ) -> point one five nine is allowed
8+ * Anything else will throw an error
89
910>>> to_int("Five")
10115
1617>>> to_float("One thousand five hundred and two")
17181502.0
1819
19- >>> to_int("Ninety nine crore three lakh seventy two thousand and six point one five nine")
20+ >>> to_int(
21+ ... "Ninety nine crore three lakh seventy two thousand and six point one five nine"
22+ ... )
2023990372006
21- >>> to_float("Ninety nine crore three lakh seventy two thousand and six point one five nine")
24+
25+ >>> to_float(
26+ ... "Ninety nine crore three lakh seventy two thousand and six point one five nine"
27+ ... )
2228990372006.159
2329
2430wikipedia explanation - https://en.wikipedia.org/wiki/Numeral_(linguistics)
You can’t perform that action at this time.
0 commit comments