PENF string-to-number (and viceversa) facility.
Convert string of any kind to ASCII string.
Convert string of default kind to ASCII string.
use penf
character(len=:, kind=ASCII), allocatable :: string
string = str_ascii('I was DEFAULT kind, but now I am ASCII')
print "(A)", string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input |
Input string of default kind. |
Output string of ASCII kind.
Convert string of any kind to UCS4 string.
Convert string of default kind to UCS4 string.
use penf
character(len=:, kind=UCS4), allocatable :: string
string = str_ascii('I was DEFAULT kind, but now I am UCS4')
print "(A)", string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input |
Input string of default kind. |
Output string of UCS4 kind.
Convert number (real and integer) to string (number to string type casting).
Convert real to string.
use penf
print "(A)", str(fm=FR8P, n=1._R8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
real(kind=R8P), | intent(in) | :: | n |
Real to be converted. |
Returned string containing input number.
Convert real to string.
use penf
print "(A)", str(n=-1._R8P)
use penf
print "(A)", str(n=-1._R8P, no_sign=.true.)
use penf
print "(A)", str(n=-1._R8P, compact=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R8P), | intent(in) | :: | n |
Real to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert real to string.
use penf
print "(A)", str(fm=FR4P, n=1._R4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
real(kind=R4P), | intent(in) | :: | n |
Real to be converted. |
Returned string containing input number.
Convert real to string.
use penf
print "(A)", str(n=-1._R4P)
use penf
print "(A)", str(n=-1._R4P, no_sign=.true.)
use penf
print "(A)", str(n=-1._R4P, compact=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R4P), | intent(in) | :: | n |
Real to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert integer to string.
use penf
print "(A)", str(fm=FI8P, n=1_I8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
integer(kind=I8P), | intent(in) | :: | n |
Integer to be converted. |
Returned string containing input number.
Convert integer to string.
use penf
print "(A)", str(n=-1_I8P)
use penf
print "(A)", str(n=-1_I8P, no_sign=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n |
Integer to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
Returned string containing input number plus padding zeros.
Convert integer to string.
use penf
print "(A)", str(fm=FI4P, n=1_I4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
integer(kind=I4P), | intent(in) | :: | n |
Integer to be converted. |
Returned string containing input number.
Converting integer to string.
use penf
print "(A)", str(n=-1_I4P)
use penf
print "(A)", str(n=-1_I4P, no_sign=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n |
Integer to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
Returned string containing input number plus padding zeros.
Convert integer to string.
use penf
print "(A)", str(fm=FI2P, n=1_I2P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
integer(kind=I2P), | intent(in) | :: | n |
Integer to be converted. |
Returned string containing input number.
Convert integer to string.
use penf
print "(A)", str(n=-1_I2P)
use penf
print "(A)", str(n=-1_I2P, no_sign=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n |
Integer to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
Returned string containing input number plus padding zeros.
Convert integer to string.
use penf
print "(A)", str(fm=FI1P, n=1_I1P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
integer(kind=I1P), | intent(in) | :: | n |
Integer to be converted. |
Returned string containing input number.
Convert integer to string.
use penf
print "(A)", str(n=-1_I1P)
use penf
print "(A)", str(n=-1_I1P, no_sign=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n |
Integer to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
Returned string containing input number plus padding zeros.
Convert logical to string.
use penf
print "(A)", str(n=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | n |
Logical to be converted. |
Returned string containing input number plus padding zeros.
Convert real array to string.
use penf
print "(A)", str(n=[1._R8P, -2._R8P])
use penf
print "(A)", str(n=[1._R8P, 2._R8P], no_sign=.true.)
use penf
print "(A)", str(n=[1._R8P, -2._R8P], separator='|')
use penf
print "(A)", str(n=[1._R8P, -2._R8P], delimiters=['(', ')'])
use penf
print "(A)", str(n=[1._R8P, -2._R8P], compact=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R8P), | intent(in) | :: | n(:) |
Real array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert real array to string.
use penf
print "(A)", str(n=[1._R4P, -2._R4P])
use penf
print "(A)", str(n=[1._R4P, 2._R4P], no_sign=.true.)
use penf
print "(A)", str(n=[1._R4P, -2._R4P], separator='|')
use penf
print "(A)", str(n=[1._R4P, -2._R4P], delimiters=['(', ')'])
use penf
print "(A)", str(n=[1._R4P, -2._R4P], compact=.true.)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R4P), | intent(in) | :: | n(:) |
Real array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert integer array to string.
use penf
print "(A)", str(n=[1_I8P, -2_I8P])
use penf
print "(A)", str(n=[1_I8P, 2_I8P], no_sign=.true.)
use penf
print "(A)", str(n=[1_I8P, -2_I8P], separator='|')
use penf
print "(A)", str(n=[1_I8P, -2_I8P], delimiters=['(', ')'])
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n(:) |
Integer array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
Returned string containing input number.
Convert integer array to string.
use penf
print "(A)", str(n=[1_I4P, -2_I4P])
use penf
print "(A)", str(n=[1_I4P, 2_I4P], no_sign=.true.)
use penf
print "(A)", str(n=[1_I4P, -2_I4P], separator='|')
use penf
print "(A)", str(n=[1_I4P, -2_I4P], delimiters=['(', ')'])
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n(:) |
Integer array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
Returned string containing input number.
Convert integer array to string.
use penf
print "(A)", str(n=[1_I2P, -2_I2P])
use penf
print "(A)", str(n=[1_I2P, 2_I2P], no_sign=.true.)
use penf
print "(A)", str(n=[1_I2P, -2_I2P], separator='|')
use penf
print "(A)", str(n=[1_I2P, -2_I2P], delimiters=['(', ')'])
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n(:) |
Integer array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
Returned string containing input number.
Convert integer array to string.
use penf
print "(A)", str(n=[1_I1P, -2_I1P])
use penf
print "(A)", str(n=[1_I1P, 2_I1P], no_sign=.true.)
use penf
print "(A)", str(n=[1_I1P, -2_I1P], separator='|')
use penf
print "(A)", str(n=[1_I1P, -2_I1P], delimiters=['(', ')'])
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n(:) |
Integer array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
Returned string containing input number.
Convert integer, to string, prefixing with the right number of zeros (integer to string type casting with zero padding).
Converting integer to string, prefixing with the right number of zeros.
use penf
print "(A)", strz(n=1_I8P)
use penf
print "(A)", strz(n=1_I8P, nz_pad=5)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n |
Integer to be converted. |
||
integer(kind=I4P), | intent(in), | optional | :: | nz_pad |
Number of zeros padding. |
Returned string containing input number plus padding zeros.
Convert integer to string, prefixing with the right number of zeros.
use penf
print "(A)", strz(n=1_I4P)
use penf
print "(A)", strz(n=1_I4P, nz_pad=5)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n |
Integer to be converted. |
||
integer(kind=I4P), | intent(in), | optional | :: | nz_pad |
Number of zeros padding. |
Returned string containing input number plus padding zeros.
Convert integer to string, prefixing with the right number of zeros.
use penf
print "(A)", strz(n=1_I2P)
use penf
print "(A)", strz(n=1_I2P, nz_pad=3)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n |
Integer to be converted. |
||
integer(kind=I4P), | intent(in), | optional | :: | nz_pad |
Number of zeros padding. |
Returned string containing input number plus padding zeros.
Convert integer to string, prefixing with the right number of zeros.
use penf
print "(A)", strz(n=1_I1P)
use penf
print "(A)", strz(n=1_I1P, nz_pad=3)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n |
Integer to be converted. |
||
integer(kind=I4P), | intent(in), | optional | :: | nz_pad |
Number of zeros padding. |
Returned string containing input number plus padding zeros.
Convert string to number (real and integer, string to number type casting).
Convert string to real.
use penf
print FR8P, cton(str='-1.0', knd=1._R8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
real(kind=R8P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to real.
use penf
print FR4P, cton(str='-1.0', knd=1._R4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
real(kind=R4P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
use penf
print FI8P, cton(str='-1', knd=1_I8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I8P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
use penf
print FI4P, cton(str='-1', knd=1_I4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I4P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
use penf
print FI2P, cton(str='-1', knd=1_I2P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I2P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
use penf
print FI1P, cton(str='-1', knd=1_I1P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I1P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert number (real and integer) to bit-string (number to bit-string type casting).
Convert real to string of bits.
@note Note It is assumed that R8P is represented by means of 64 bits, but this is not ensured in all architectures.
use penf
print "(A)", bstr(n=1._R8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R8P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert real to string of bits.
@note Note It is assumed that R4P is represented by means of 32 bits, but this is not ensured in all architectures.
use penf
print "(A)", bstr(n=1._R4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R4P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert integer to string of bits.
@note Note It is assumed that I8P is represented by means of 64 bits, but this is not ensured in all architectures.
use penf
print "(A)", bstr(n=1_I8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert integer to string of bits.
@note Note It is assumed that I4P is represented by means of 32 bits, but this is not ensured in all architectures.
use penf
print "(A)", bstr(n=1_I4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert integer to string of bits.
@note Note It is assumed that I2P is represented by means of 16 bits, but this is not ensured in all architectures.
use penf
print "(A)", bstr(n=1_I2P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert integer to string of bits.
@note Note It is assumed that I1P is represented by means of 8 bits, but this is not ensured in all architectures.
use penf
print "(A)", bstr(n=1_I1P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert bit-string to number (real and integer, bit-string to number type casting).
Convert bit-string to real.
use penf
print FR8P, bcton('0000000000000000000000000000000000000000000000001111000000111111', knd=1._R8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
real(kind=R8P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to real.
use penf
print FR4P, bcton('00000000000000001000000000111111', knd=1._R4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
real(kind=R4P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to integer.
use penf
print FI8P, bcton('0000000000000000000000000000000000000000000000000000000000000001', knd=1_I8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
integer(kind=I8P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to integer.
use penf
print FI4P, bcton('00000000000000000000000000000001', knd=1_I4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
integer(kind=I4P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to integer.
use penf
print FI2P, bcton('0000000000000001', knd=1_I2P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
integer(kind=I2P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to integer.
use penf
print FI1P, bcton('00000001', knd=1_I1P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
integer(kind=I1P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert string of default kind to ASCII string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input |
Input string of default kind. |
Output string of ASCII kind.
Convert string of ASCII kind to ASCII string, just for convenience in sanitize strings.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=ASCII, len=*), | intent(in) | :: | input |
Input string of ASCII kind. |
Output string of ASCII kind.
Convert string of UCS4 kind to ASCII string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=UCS4, len=*), | intent(in) | :: | input |
Input string of UCS4 kind. |
Output string of ASCII kind.
Convert string of default kind to UCS4 string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input |
Input string of default kind. |
Output string of UCS4 kind.
Convert string of ASCII kind to UCS4 string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=ASCII, len=*), | intent(in) | :: | input |
Input string of ASCII kind. |
Output string of UCS4 kind.
Convert string of UCS4 kind to UCS4 string, just for convenience in sanitize strings.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=UCS4, len=*), | intent(in) | :: | input |
Input string of UCS4 kind. |
Output string of UCS4 kind.
Convert real to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
real(kind=R16P), | intent(in) | :: | n |
Real to be converted. |
Returned string containing input number.
Convert real to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
real(kind=R8P), | intent(in) | :: | n |
Real to be converted. |
Returned string containing input number.
Convert real to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
real(kind=R4P), | intent(in) | :: | n |
Real to be converted. |
Returned string containing input number.
Convert integer to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
integer(kind=I8P), | intent(in) | :: | n |
Integer to be converted. |
Returned string containing input number.
Convert integer to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
integer(kind=I4P), | intent(in) | :: | n |
Integer to be converted. |
Returned string containing input number.
Convert integer to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
integer(kind=I2P), | intent(in) | :: | n |
Integer to be converted. |
Returned string containing input number.
Convert integer to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm |
Format different from the standard for the kind. |
||
integer(kind=I1P), | intent(in) | :: | n |
Integer to be converted. |
Returned string containing input number.
Convert real to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R16P), | intent(in) | :: | n |
Real to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert real to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R8P), | intent(in) | :: | n |
Real to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert real to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R4P), | intent(in) | :: | n |
Real to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert integer to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n |
Integer to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
Returned string containing input number plus padding zeros.
Converting integer to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n |
Integer to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
Returned string containing input number plus padding zeros.
Convert integer to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n |
Integer to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
Returned string containing input number plus padding zeros.
Convert integer to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n |
Integer to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
Returned string containing input number plus padding zeros.
Convert logical to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | n |
Logical to be converted. |
Returned string containing input number plus padding zeros.
Converting real array to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R16P), | intent(in) | :: | n(:) |
Real array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert real array to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R8P), | intent(in) | :: | n(:) |
Real array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert real array to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R4P), | intent(in) | :: | n(:) |
Real array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
|
logical, | intent(in), | optional | :: | compact |
Flag for compacting string encoding. |
Returned string containing input number.
Convert integer array to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n(:) |
Integer array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
Returned string containing input number.
Convert integer array to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n(:) |
Integer array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
Returned string containing input number.
Convert integer array to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n(:) |
Integer array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
Returned string containing input number.
Convert integer array to string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n(:) |
Integer array to be converted. |
||
logical, | intent(in), | optional | :: | no_sign |
Flag for leaving out the sign. |
|
character(len=1), | intent(in), | optional | :: | separator |
Eventual separator of array values. |
|
character(len=*), | intent(in), | optional | :: | delimiters(1:2) |
Eventual delimiters of array values. |
Returned string containing input number.
Converting integer to string, prefixing with the right number of zeros.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n |
Integer to be converted. |
||
integer(kind=I4P), | intent(in), | optional | :: | nz_pad |
Number of zeros padding. |
Returned string containing input number plus padding zeros.
Convert integer to string, prefixing with the right number of zeros.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n |
Integer to be converted. |
||
integer(kind=I4P), | intent(in), | optional | :: | nz_pad |
Number of zeros padding. |
Returned string containing input number plus padding zeros.
Convert integer to string, prefixing with the right number of zeros.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n |
Integer to be converted. |
||
integer(kind=I4P), | intent(in), | optional | :: | nz_pad |
Number of zeros padding. |
Returned string containing input number plus padding zeros.
Convert integer to string, prefixing with the right number of zeros.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n |
Integer to be converted. |
||
integer(kind=I4P), | intent(in), | optional | :: | nz_pad |
Number of zeros padding. |
Returned string containing input number plus padding zeros.
Convert string to real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
real(kind=R16P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
real(kind=R8P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
real(kind=R4P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I8P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I4P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I2P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I1P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert real to string of bits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R16P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert real to string of bits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R8P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert real to string of bits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R4P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert integer to string of bits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert integer to string of bits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert integer to string of bits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert integer to string of bits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n |
Real to be converted. |
Returned bit-string containing input number.
Convert bit-string to real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
real(kind=R16P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
real(kind=R8P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
real(kind=R4P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
integer(kind=I8P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
integer(kind=I4P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
integer(kind=I2P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Convert bit-string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | bstr |
String containing input number. |
||
integer(kind=I1P), | intent(in) | :: | knd |
Number kind. |
Number returned.
Compact a string representing a real number, so that the same value is displayed with fewer characters.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(inout) | :: | string |
string representation of a real number. |