Function Type:

Log10 is an elemental function that works on REAL arguments only

Function Purpose:

The function log10 computes the common logarithm ( base 10 )of a specified number.

Required Arguments:


The argument x must be either a real number or a variable of type REAL. The value of x must be greater than zero.

Optional Arguments:

There are no optional arguments to this function.


The following variables are declared and x is given an initial value of 100.
         real x,y,z

x = 100.0

The following common logarithms are then computed.
         Y = log10(x)
         Z = log10(1.0)
The results are that y will equal two and z will equal zero.

For additional examples and information see:


lecture seven

Up one level / Home

Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy : jhm@cac.psu.edu