Programming-Idioms

History of Idiom 22 > diff from v37 to v38

Edit summary for version 38 :
[Ada] Result variable should be named 'I'

Version 37

2016-02-16, 15:32:07

Version 38

2016-02-16, 16:44:42

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Code
Result := Integer'Value (s);
Code
I := Integer'Value (s);