RE: Integer?

2000-04-12 Thread jstiefel
will tell you that it can't be converted to an integer. Go figure. -Original Message- From: Reuben King [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 11, 2000 4:36 PM To: [EMAIL PROTECTED] Subject: RE: Integer? I have CF 4.5.1 and this statement simply isn't true. IsNumeric() returns a true

RE: Integer?

2000-04-11 Thread mherbene
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,

Re: Integer?

2000-04-11 Thread Alexander Lamon
Use the IsNumeric function to test for a number value, then perform your MOD stuff 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

Re: Integer?

2000-04-11 Thread Chris Tazewell
Try this: CFIF IsNumeric(myformfield) CFSET newint = Int(myformfield) CFIF newint MOD 100 not an integer /CFIF /CFIF Taz - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 11, 2000 2:55 PM Subject: Integer? Hopefully someone can shed some

RE: Integer?

2000-04-11 Thread jstiefel
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 integ

RE: Integer?

2000-04-11 Thread mherbene
]] Sent: Tuesday, April 11, 2000 11:21 AM To: [EMAIL PROTECTED] Subject: RE: Integer? How could a number "01234567890" be an integer? It's not even a real number! -- Archives: http://www.eGroups.com/li

RE: Integer?

2000-04-11 Thread Jim Vu
it appears that coldFusion can't handle very large integer. one work around solution is to check for the last two digits being "00". if they are, the integer is divisible (or increment of) by 100. here's the fix: cfif isNumeric(form.myField) cfset rightTwoDigits = right(form.myField, 2)

RE: Integer?

2000-04-11 Thread Reuben King
To: [EMAIL PROTECTED] Subject: RE: Integer? How could a number "01234567890" be an integer? It's not even a real number! -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://w

RE: Integer?

2000-04-11 Thread Grainne E. O'Neill
I'm going to lay out what numbers are what. For programming purposes these definitions vary. All Numbers Imaginary: Numbers that do not exist for practical purposes. They have real value in some engineering fields, and in mathematics. What number, when multiplied with itself gives you a

RE: Integer?

2000-04-11 Thread Reuben King
1, 2000 12:15 PM To: [EMAIL PROTECTED] Subject: RE: Integer? Huh? Do you mean because of the leading zero? Most of the time computers can ignore that. What else makes it not an integer? If I write it as 1,234,567,890 is it an integer? Not wanting to fight, but curious.. ---