Home Coding Data Types – Integers

Data Types – Integers

0
Data Types – Integers

# Data Types - INTEGERS
# Integers contain only whole numbers (positive or negative)
# and can't contain fractions or decimals. 
# In Python, there is no limit to how long an integer value can be.
# Otherwise in Dynamo, Integers are up to 9223372036854775807
# 9223372036854775808 will throw an exception "Integer Overflow"

int1 = 1				 # I'm one
int2 = 123456789			 # Whole number
int3 = 123_456_789 		# Integers do not support . or , to separate decimals use _ (maybe the colorcode will not work)
int4 = 9223372036854775807 	# No more than me!
int5 = 9223372036854775808	# No problems in Python script, problems just in Dynamo

OUT = (int1, int2,int3, int4, int5)