>- see footer for list info -< CF is a typeless language by default, so it depends in what context you use a variable as to how it is treated. If you do a math function then CF will treat it as numeric, if you do a string function, cf will treat it as a string. Unless of course you are declaring a type with cfparam for example.
CF can treat anything as a list, you simply need to tell it what the delimiters are, "," is the default delimiter, but you can specify that "." is the delimiter so that your list of numbers can be treated as a list. -- Russ Michaels Certified ColdFusion Professional My Blog: www.russ.michaels.me.uk Commerical ColdFusion & BlueDragon Hosting: www.cfmxhosting.co.uk FREE CFML Developer hosting : www.cfdeveloper.co.uk -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Middleweek Sent: 22 May 2008 10:25 To: Coldfusion Development Subject: Re: [CF-Dev] -257.14 - Int and Dec >- see footer for list info -< Hello, Does ColdFusion 'under the bonnet' treat everything as Strings or as Lists? Forgive me, if I'm getting my CF terminology mixed up but I've used Lists in other languages and can understand that a 'comma' seperated string is treated as List. And in CF, I can see that the String "1.2.3.4.5.6.7" is also a List but the numeric value 1.2 - I can't see it being a List. So does CF try to convert scalars to Strings when applying List commands to them? >From an understanding point of view and not that it'll make much difference on todays hardware but, which is faster when trying to find the Int and Dec or -257.14? Lists or Maths? There we go, a nice topic for a sunny Thursday! :-) Cheers, Nick 2008/5/14 Peter Boughton <[EMAIL PROTECTED]>: > >- see footer for list info -< > > Just looked up those commands, I like it! > > > > is that cheating? :) > > Of course not. The number is a two item list, so it's a valid use. > > Many things can be treated as lists - it's just a case of how your > mind looks at things. > > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< > _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
