Huge will function on INTEGER, and REAL variables.
This function will return the largest number that can be represented by a variable (scalar or array) of the same type as x.
huge (x)
Where x is either an INTEGER or REAL variable.
Note: The function must return its output to a scalar variable with the same type as x.
For the following example:
integer, number,lmax lmax = huge(number)
The value of lmax will be equal to 2,147,483,647. This is the biggest integer value that the computer can store as an integer if you were using a 32-bit representation. The value of the variable number has absolutely no effect on the value that is returned. The only thing that matters is the type and kind of variable in the argument.
lecture seven
examples ranges.fUp one level / Home
Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy : jhm@cac.psu.edu