More specifically, the number 2 is an example of a value with an int data type or an integer value. An integer value can be any positive number, negative number, or zero without a trailing decimal point. A float value is any number with a trailing decimal point. To create a float value, you can simply write a decimal point after the number such as 1. or 1.5.