Contains procedures related to characters and character arrays, such as converting integers to characters
Convert the integer i to a character (array) "i"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i |
The integer "i" as a character array, e.g. int2char(2) "2" int2char(16) "16"
Returns number of characters an integer will occupy
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n |
The number of characters it takes to represent a number, e.g. ndigits(7) 1 ndigits(-7) 2 ndigits(38) 2 ndigits(3877) 7