there is both a tostring() and a val() function in 4.5.1 Also, I thing the following works...
String = number + ""
and
Number = string * 1 or Number = string - 0
^ / \__ ( @\___ / O / (_____/ /_____/ Whoof... 410-757-3487
-----Original Message----- From: Bryan Love [SMTP:BLove@xypoint.com] Sent: Monday, March 12, 2001 8:19 PM To: CF-Talk Subject: RE: Number to String?
You won't find reference to integer-to-string conversions because they do not exist. Cold Fusion was designed and written as a typeless language. There is no difference between a number and a string.
If you want to manipulate the zeros you may do so at any time without any conversion. What exactly are you trying to do?
Bryan Love ACP Internet Application Developer blove@xypoint.com
-----Original Message----- From: Bryan Rieger [mailto:bryan@trapeze.com] Sent: Monday, March 12, 2001 7:28 PM To: CF-Talk Subject: Number to String?
Hello,
Is it possible to convert a number to a string? For example, if I have the number 1 formatted as 00000001 and I wanted to convert that to a string "00000001" to then manipulate the '0's as characters. Is this possible? I can go from strings to integers, but I don't seem to be able to go the other way. I feel as though I'm missing something really basic - but I haven't found it in any reference.
Any help greatly appreciated.
Cheers, -- Bryan Rieger Developer Trapeze Media
http://www.trapeze.com/
"Give a man a match and he'll be warm for an hour... Set him on fire and he'll be warm for the rest of his life." Anonymous