Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | IntegerValue | |||
integer, | intent(in), | optional | :: | SigDigits |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
FUNCTION iRoundSigDigits(IntegerValue,SigDigits) RESULT(OutputString)
! FUNCTION INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN March 2002
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function accepts a number as parameter as well as the number of
! significant digits after the decimal point to report and returns a string
! that is appropriate.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: IntegerValue
INTEGER, INTENT(IN), OPTIONAL :: SigDigits ! ignored
CHARACTER(len=32) OutputString
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
CHARACTER(len=32) String ! Working string
WRITE(String,*) IntegerValue
OutputString=ADJUSTL(String)
RETURN
END FUNCTION iRoundSigDigits