Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

type conversion python

# Assuming x is an int
long(x)

# This can be done backwards, such as:
int(x)
# Keep in mind, if the long is to large for an int, it will be kept as a long.

# Another conversion includes:
float(x)

 
PREVIOUS NEXT
Tagged: #type #conversion #python
ADD COMMENT
Topic
Name
5+5 =