Search notes:

Python: int

int(s) can be used to convert a string (s) that represents a number into an integer.
The second, optional, parameter specifies the base of the string to be converted number. For example, if the second parameter is set to 16, it converts a hexadecimal string into an integer.
print(int('7') * int('6'))
#
# 42

print(int('ff', 16))
#
# 255
Github repository about-Python, path: /builtin-functions/int.py

See also

float() and str()
Python: Built in functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199138, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/built-in-functions/int(53): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78