On this page
  1. locale.atoi
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

locale.atoi

Prev: locale.atof | Up: locale | Next: locale.currency
Rel: locale.atof, locale.currency, locale.Error, locale.format_string
Ref: docs.python.org — locale.atoi
Tags: #public #python3 #stdlib #locale


Import

import locale
from locale import atoi

Signature & Overview

locale.atoi(string)

Converts a string to an integer according to the locale settings.

Usage

import locale

assert locale.atoi("42") == 42

Gotchas

REPL Inspect

from locale import atoi
help(atoi)

Linked from

Related notes