Discussion:
[elm-discuss] How to convert Int to String?
Stefan Geneshky
2015-08-23 21:48:37 UTC
Permalink
Hello everyone,

The String lib doesn't seem to convert Int to String and Float to String.
How are these conversions done in Elm?

Thanks,
Stefan
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Joey Eremondi
2015-08-23 21:53:41 UTC
Permalink
In Basics (imported by default), there's a toString method which will
convert anything into a string. This works nicely for simple values like
integers, or if you need a quick-and-dirty representation of more
complicated data.
Post by Stefan Geneshky
Hello everyone,
The String lib doesn't seem to convert Int to String and Float to String.
How are these conversions done in Elm?
Thanks,
Stefan
--
You received this message because you are subscribed to the Google Groups
"Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stefan Geneshky
2015-08-24 05:21:06 UTC
Permalink
Thanks, Joey! That was easy.
Post by Joey Eremondi
In Basics (imported by default), there's a toString method which will
convert anything into a string. This works nicely for simple values like
integers, or if you need a quick-and-dirty representation of more
complicated data.
Post by Stefan Geneshky
Hello everyone,
The String lib doesn't seem to convert Int to String and Float to String.
How are these conversions done in Elm?
Thanks,
Stefan
--
You received this message because you are subscribed to the Google Groups
"Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...