How to convert an Int value to a String?

Viewed 256

How to convert an Int value to a String?

1 Answers

Elm makes this very easy with String.fromInt.

For example

String.fromInt 5 -- returns "5"

A great tool to find answers to this is elm-search. Just search for Int -> String or any other type signature for similar questions.

Related