check what size of number can be stored in which variable type.
This also depends on the controller you are using. On an AVR based 8bit controller like used on an Uno R3 the maximum value for int is much smaller than 50000!
check what size of number can be stored in which variable type.
This also depends on the controller you are using. On an AVR based 8bit controller like used on an Uno R3 the maximum value for int is much smaller than 50000!