Logo

Programming-Idioms

History of Idiom 55 > diff from v88 to v89

Edit summary for version 89 by Johnny5:
[Java] var is used in Java 10, not everyone is familiar yet with that language feature

Version 88

2020-04-29, 09:00:06

Version 89

2020-04-29, 09:01:03

Idiom #55 Convert integer to string

Create the string representation s (in radix 10) of integer value i.

Illustration

Idiom #55 Convert integer to string

Create the string representation s (in radix 10) of integer value i.

Illustration
Extra Keywords
int base radix conversion
Extra Keywords
int base radix conversion
Code
var s = "" + i;
Code
String s = "" + i;
Comments bubble
Probably not the most performant, but one of the shortest.
Comments bubble
Probably not the most performant, but one of the shortest.