This language bar is your friend. Select your favorite languages!

Idiom #55 Convert integer to string

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

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 79 2019-10-14, 12:25 [Elixir] Dead link: play.elixirbyexample.com has been down for a while programming-idioms.org
👁 Δ 78 2019-09-29, 19:17 [Perl] crib explanation from idiom 22/impl 294 daxim
👁 Δ 77 2019-09-29, 01:32 New VB implementation by user [EvilGenius] EvilGenius
👁 Δ 76 2019-09-26, 19:47 New Fortran implementation by user [tkoenig] tkoenig
👁 Δ 75 2019-09-26, 18:39 New Kotlin implementation by user [fojji] fojji
👁 Δ 74 2019-09-26, 16:04 New Lisp implementation by user [foobar] foobar
👁 Δ 73 2019-09-26, 14:07 [Elixir] Alternative, more often used, solution lab419
👁 Δ 72 2019-09-26, 14:06 [Elixir] Alternative, more often used, solution lab419
👁 Δ 71 2019-07-08, 20:22 [Rust] Actual fix to online demo url Ericston
👁 Δ 70 2019-07-08, 20:22 [Rust] Fix online demo Ericston
👁 Δ 69 2019-07-08, 20:21 [Rust] to_string is more expressive; no macro use Ericston
👁 Δ 68 2018-03-13, 20:43 [PHP] spaces, semicolon programming-idioms.org
👁 Δ 67 2018-03-13, 20:40 [PHP] 2 ways => 2 impls, see new impl 2251 programming-idioms.org
👁 Δ 66 2018-03-13, 20:39 New PHP implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 65 2018-02-21, 09:16 [PHP] add line mins01
👁 Δ 64 2018-02-21, 09:15 [PHP] delete line mins01
👁 Δ 63 2018-02-21, 09:14 New PHP implementation by user [mins01] mins01
👁 Δ 62 2018-01-22, 00:07 Restored version 59 programming-idioms.org
👁 Δ 61 2018-01-20, 12:09 [Pascal] ddd tr
👁 Δ 60 2018-01-20, 12:08 [Lua] dd tr
👁 Δ 59 2017-10-12, 19:51 Restored version 57 programming-idioms.org
👁 Δ 58 2017-10-10, 17:22 [Python] s raphael
👁 Δ 57 2017-09-05, 20:19 [Scala] Result name is s programming-idioms.org
👁 Δ 56 2017-09-05, 20:13 [JS] Variable name is i programming-idioms.org
👁 Δ 55 2017-06-07, 16:00 New Scheme implementation by user [Dodopod] Dodopod
👁 Δ 54 2017-03-24, 20:29 New Java implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 53 2017-03-24, 20:28 New Java implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 52 2017-03-24, 20:27 [Java] +DocURL programming-idioms.org
👁 Δ 51 2016-11-30, 20:48 [Elixir] DemoURL programming-idioms.org
👁 Δ 50 2016-11-27, 14:55 +keyword programming-idioms.org
👁 Δ 49 2016-11-11, 16:16 +keywords programming-idioms.org
👁 Δ 48 2016-10-27, 09:06 Linked to idiom #153 [Concatenate string with integer] programming-idioms.org
👁 Δ 47 2016-10-22, 16:06 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 46 2016-10-22, 16:06 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 45 2016-10-20, 11:49 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 44 2016-08-23, 13:56 Admin deletes impl 1367 programming-idioms.org
👁 Δ 43 2016-05-20, 10:27 keywords programming-idioms.org
👁 Δ 42 2016-02-18, 16:58 New Scala implementation by user [meshelton]
👁 Δ 41 2016-02-16, 21:32 New Scala implementation by user [meshelton]
👁 Δ 40 2016-02-16, 20:28 [JS] "num" did not exist in the context
👁 Δ 39 2016-02-16, 18:04 [Java] Updated documentation url.
👁 Δ 38 2016-02-16, 18:03 New Java implementation by user [savanu]
👁 Δ 37 2016-02-16, 17:51 New Cpp implementation by user [GhassanPL]
👁 Δ 36 2016-02-16, 16:53 [Ada] The string has to be assigned a value when it is declared, since "String" is an indefinite subtype
👁 Δ 35 2016-02-16, 16:50 New Ada implementation by user [Smaehtin]
👁 Δ 34 2016-02-16, 16:02 [Csharp] added documentation
👁 Δ 33 2016-02-16, 16:00 New Csharp implementation by user [sb88]
👁 Δ 32 2016-02-16, 15:55 New Lua implementation by user [jparoz]
👁 Δ 31 2016-01-02, 03:53 [Clojure] Remove unnecessary emphasis underscores
👁 Δ 30 2016-01-02, 03:52 [Clojure] Read the conversion text backward... oops!
👁 Δ 29 2016-01-02, 03:50 New Clojure implementation by user [gws]
👁 Δ 28 2016-01-02, 01:27 New JS implementation by user [akesling]
👁 Δ 27 2015-11-30, 12:37
👁 Δ 26 2015-10-29, 14:05
👁 Δ 25 2015-10-22, 08:48
👁 Δ 24 2015-10-22, 00:42
👁 Δ 23 2015-10-22, 00:37
👁 Δ 22 2015-10-22, 00:36
👁 Δ 21 2015-10-02, 14:01
👁 Δ 20 2015-10-02, 13:59
👁 Δ 19 2015-10-02, 13:59
👁 Δ 18 2015-10-02, 13:58
👁 Δ 17 2015-09-04, 18:26
👁 Δ 16 2015-09-04, 11:01
👁 Δ 15 2015-09-03, 16:17
👁 Δ 14 2015-08-22, 21:18
👁 Δ 13 2015-08-21, 23:26
👁 Δ 12 2015-08-20, 20:09
👁 Δ 11 2015-08-20, 18:30
👁 Δ 10 2015-08-20, 18:28
👁 Δ 9 2015-08-20, 18:28
👁 Δ 8 2015-08-20, 14:44
👁 Δ 7 2015-08-19, 15:45
👁 Δ 6 2015-08-19, 15:38
👁 Δ 5 2015-08-19, 15:31
👁 Δ 4 2015-08-19, 15:31
👁 Δ 3 2015-08-19, 15:29
👁 Δ 2 2015-07-31, 20:43
1 2015-05-06, 21:04