RE: Little incosistency in Euphoria 2.2
- Posted by Kat <gertie at PELL.NET> Apr 26, 2001
- 400 views
On 27 Apr 2001, at 14:56, Derek Parnell wrote: > > > -----Original Message----- > > From: Kat [mailto:gertie at PELL.NET] > > Sent: Friday, 27 April 2001 2:18 PM > > To: EUforum > > Subject: RE: Little incosistency in Euphoria 2.2 > > > Wouldn't this be a great reason to not use value()? So far, i > > haven't found a reason to use it anywhere. > > Hi Kat, > I agree with you. I never use value() because it has never suited any > purpose for me. I rolled my own routine to convert a string to a number (ie. a > sequence to an atom ). Its not perfect but it does the job. > > > What would be a use for it that it cannot be > > replaced by another function, such as sprintf("%d",variable)? > > Doesn't value() and sprintf() do the opposite of each other. value() > converts a sequence to an atom, and sprintf() converts an atom to a > sequence. Oh,, right, oops. I guess the reason i never looked at it is that i don't store a number as a numeral, so it's an integer when i get it. Or i use an object type. It's easier, for me, to not make the integer(number) a sequence(numeral) till it's printed. Kat