Stupid questions...

Sarah Thompson sarah@telergy.com
Thu, 23 Jan 2003 13:16:18 -0000


Sorry about such lame questions. I'm currently using Haskell 'in anger' for
the first time, so differences with other functional languages are biting me
occasionally.

I need to convert Ints to Strings and vice-versa. What's the best way to do
this? I've not found library functions for this.

Second question:

Using division over integers. I appreciate that a division operator with
integers as arguments can not be guaranteed to return an exact integer
result. However, if I *do* want to do integer division, how should I do it?
Is floor(a/b) appropriate?

TIA
Sarah Thompson