str()
converts a number (integer or real) to a string
More...
|
character(len=:) function, allocatable | c2str (sin) |
|
character(len=:) function, allocatable | i2str (nin) |
|
character(len=:) function, allocatable | r2str (rin) |
|
character(len=:) function, allocatable | dp2str (rin) |
|
character(len=:) function, allocatable | z2str (zin) |
| z2str gives a string representation of a complex number
|
|
function | dparr2str (vec) |
|
function | zarr2str (vec) |
|
function | iarr2str (vec) |
|
function | rarr2str (vec) |
|
character(len=:) function, allocatable | dparr2d2str (vec) |
|
character(len=:) function, allocatable | zarr2d2str (vec) |
|
character(len=:) function, allocatable | iarr2d2str (vec) |
|
character(len=:) function, allocatable | rarr2d2str (vec) |
|
str()
converts a number (integer or real) to a string
Use:
print *,
'I2str: - int:', 123,
'- string: |'//
str(123)//
'|'
print *,
'r2str: - real:', 123.121000_4,
'- string: |'//
str(123.12100_4)//
'|'
print *,
'dp2str: - real:', 123.1221_8,
'- string: |'//
str(123.1221_8)//
'|'
print *,
'dp2str: - real:', -123.121_8,
'- string: |'//
str(-123.121_8)//
'|'
print *,
'dp2str: - real:', -123.1221e-12_8,
'- string: |'//
str(-123.1221e-12_8)//
'|'
str() converts a number (integer or real) to a string
Definition strings.f90:50
This module defines functions to manipulate strings of characters. Description.
Definition strings.f90:7
Gives:
◆ c2str()
character(len=:) function, allocatable c2str |
( |
character(len=*), intent(in) | sin | ) |
|
- Parameters
-
- Returns
- String converted
◆ dp2str()
character(len=:) function, allocatable dp2str |
( |
real(dp), intent(in) | rin | ) |
|
◆ dparr2d2str()
character(len=:) function, allocatable dparr2d2str |
( |
real(dp), dimension(:, :), intent(in) | vec | ) |
|
- Parameters
-
[in] | vec | Vector of numbers to convert |
- Returns
- String created
◆ dparr2str()
function dparr2str |
( |
real(dp), dimension(:), intent(in) | vec | ) |
|
◆ i2str()
character(len=:) function, allocatable i2str |
( |
integer, intent(in) | nin | ) |
|
- Parameters
-
[in] | nin | Integer to convert |
- Returns
- String converted
References strings::strip().
◆ iarr2d2str()
character(len=:) function, allocatable iarr2d2str |
( |
integer, dimension(:, :), intent(in) | vec | ) |
|
◆ iarr2str()
function iarr2str |
( |
integer, dimension(:), intent(in) | vec | ) |
|
◆ r2str()
character(len=:) function, allocatable r2str |
( |
real(sp), intent(in) | rin | ) |
|
◆ rarr2d2str()
character(len=:) function, allocatable rarr2d2str |
( |
real(sp), dimension(:, :), intent(in) | vec | ) |
|
◆ rarr2str()
function rarr2str |
( |
real(sp), dimension(:), intent(in) | vec | ) |
|
◆ z2str()
character(len=:) function, allocatable z2str |
( |
complex(dp), intent(in) | zin | ) |
|
z2str gives a string representation of a complex number
- Returns
- String representation
◆ zarr2d2str()
character(len=:) function, allocatable zarr2d2str |
( |
complex(dp), dimension(:, :), intent(in) | vec | ) |
|
◆ zarr2str()
function zarr2str |
( |
complex(dp), dimension(:), intent(in) | vec | ) |
|
The documentation for this interface was generated from the following file:
- /home/fiol/Trabajos/fortran/numfor/src/utils/strings.f90