Skip to content

Commit 2274af7

Browse files
authored
Update stdlib_str2num.md
Review from Krausler
1 parent 62f055a commit 2274af7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/specs/stdlib_str2num.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Convert a string or an array of strings to numerical types.
2626

2727
`string`: argument has `intent(in)` and is of type `character(*)`.
2828

29-
`mold`: argument has `intent(in)` and is of numerical type (that is of `integer` or of `real`). **Note**: the mold argument is included to help compilers chose the correct implementation at compile-time. Currently, compilers are not able to disambiguate functions with respect to the left-hand-side of an assignment.
29+
`mold`: argument has `intent(in)` and is of numerical type (that is of `integer` or of `real`). **Note**: The type of the `mold` argument defines the type of the result.
3030

3131
### Return value
3232

@@ -65,7 +65,7 @@ Convert a stream of values in a string to an array of values.
6565

6666
`string`: argument has `intent(in)` and is of type `character(*), pointer`.
6767

68-
`mold`: argument has `intent(in)` and is of numerical type (currently of `integer` or `real`). **Note**: the mold argument is included to help compilers chose the correct implementation at compile-time. Currently, compilers are not able to disambiguate functions with respect to the left-hand-side of an assignment.
68+
`mold`: argument has `intent(in)` and is of numerical type (currently of `integer` or `real`). **Note**: The type of the `mold` argument defines the type of the result.
6969

7070
### Return value
7171

@@ -102,4 +102,4 @@ The accuracy of the conversion is implementation dependent; it is recommended th
102102

103103
`qp` : precision around 200*epsilon(0.0_qp)
104104

105-
Where precision refers to the relative difference between `to_num` and `read`. On the other hand, `to_num` provides speed-ups ranging from 4x to >10x compared to the intrinsic `read`.
105+
Where precision refers to the relative difference between `to_num` and `read`. On the other hand, `to_num` provides speed-ups ranging from 4x to >10x compared to the intrinsic `read`.

0 commit comments

Comments
 (0)