How could a number "01234567890" be an integer? It's not even a real number!
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 10:28 AM
To: [EMAIL PROTECTED]
Subject: RE: Integer?
Well, "01234567890" _is_ an integer, unless the rules have changed. Maybe
it's too big for the mod function, though; CF can't handle large numbers (I
don't remember exactly what "large" is). How about either
val(form.myField) MOD 100
or
<cfif len(form.myfield) LT 6> <!--- maybe not six, try yourself --->
<cfif form.myfield MOD 100
...
</cfif>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 9:56 AM
To: [EMAIL PROTECTED]
Subject: Integer?
Hopefully someone can shed some light on this. I've got a field where I'm
looking for an integer. I then need to verify that this field is in an
increment of 100:
<cfif form.myField Mod 100>
It's not an increment of 100!
</cfif>
Alrighty, that works fine, unless I enter a non-integer in the field (i.e.
"01234567890", even though CFFORM validates this as an integer!)
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.