Skip to main content

String example 1

In this example we test following methods.

  • Str

Modules and classes

  • [[String_]]

Usage

PROGRAM main
use easifemBase
implicit none

!!! note "Str for integer"

  BLOCK
CALL Display( Str(1), "Str(1) = " )
CALL Display( Str(1, no_sign=.TRUE.), "Str(1) = " )
CALL Display( Str(1, no_sign=.FALSE.), "Str(1) = " )
END BLOCK

!!! note "Str for real32"

  BLOCK
CALL Display( Str(1.0_Real32), "Str(1) = " )
CALL Display( Str(1.0_Real32, no_sign=.TRUE.), "Str(1) = " )
CALL Display( Str(1.0_Real32, no_sign=.FALSE.), "Str(1) = " )
END BLOCK

!!! note "Str for real64"

  BLOCK
CALL Display( Str(1.0_Real64), "Str(1) = " )
CALL Display( Str(1.0_Real64, no_sign=.TRUE.), "Str(1) = " )
CALL Display( Str(1.0_Real64, no_sign=.FALSE.), "Str(1) = " )
END BLOCK
END PROGRAM main