Class: qgsPermissiveToInt

class qgis.core.qgsPermissiveToInt(string: str) → Tuple[int, bool]

Converts a string to an integer in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators

Parameters
  • string – string to convert

  • ok – will be set to True if conversion was successful

Returns

string converted to int if possible

See also

permissiveToDouble()

New in version 2.9: Enums

Methods

Signals

Attributes