()
| 332 | return int(delocalize(string)) |
| 333 | |
| 334 | def _test(): |
| 335 | setlocale(LC_ALL, "") |
| 336 | #do grouping |
| 337 | s1 = format_string("%d", 123456789,1) |
| 338 | print(s1, "is", atoi(s1)) |
| 339 | #standard formatting |
| 340 | s1 = str(3.14) |
| 341 | print(s1, "is", atof(s1)) |
| 342 | |
| 343 | ### Locale name aliasing engine |
| 344 |