You are correct as is plainly stated in the tag documentation:

Returns
A number. If conversion fails, returns zero.

A number in ColdFusion is as you state, a number with no leading zeros. No questions of loosly typed language, just a question of what a number is.

>I dunno - that seems right to me.  The Val() function returns the value, not
>the "digits" - I would expect it to only return significant digits.  After
>all the value of "021" is "21" just as the value of "0000000000000000021" is
>"21".
>
>
>
>Jim Davis
>
>
>
>
>
>From: Claude Schneegans [mailto:[EMAIL PROTECTED]
>Sent: Saturday, August 07, 2004 11:15 PM
>To: CF-Talk
>Subject: Re: Val function seems buggy
>
>
>
>>>The value of dtgVar is 21 instead of 021
>
>This is another "advantage" of lousely typed language.
>CF is worse than lousely typed: it is "let me guess the type" :-(
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to