Name

Val

Synopsis

Val(string)

Returns a number that the beginning of the specified string can be converted to. If conversion isn’t possible, returns 0. Examples:

<CFOUTPUT>
Val(123): #Val(123)#<BR>
Val('abc'): #Val('abc')#<BR>
Val('1a2b3c'): #Val('1a2b3c')#<BR>
Val(True): #Val(True)#<BR>
Val(11/11/99): #Val(11/11/99)#<BR>
</CFOUTPUT>

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.