Logo

Programming-Idioms

History of Idiom 22 > diff from v97 to v98

Edit summary for version 98 by NiGHTS:
[Ada] Not a complete representation of the declaration of the type and it's assignment from a parsed string

Version 97

2020-07-05, 20:32:28

Version 98

2020-08-18, 17:22:41

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)

Variables
i,s
Variables
i,s
Extra Keywords
int base conversion
Extra Keywords
int base conversion
Code
I := Integer'Value (s);
Code
I : Integer := Integer'Value (s);