Whole numbers
A number that does not use fractions or decimal points. For example, 25, 100, 365, and 2006 are all examples of whole numbers. The numbers 25.2, 100.010, 365.12, and 2006.3 are not. In most programming languages you can convert a number into a whole number by making it an integer. Below is an example of how this could be done in Perl.
my $random = int(rand(10));
print "Random number between 0 and
10: $random\n";
In the above example the $random variable is assigned a random number, which is converted into a whole number using the int() function.
Also see: Floating-point, Integer, Number, Programming definitions
