Negative zero, while being an odd notation, is still a number, as would
be -1, -2, -3, etc. I would be frightened if a negative number didn't
pass the IsNumeric function. You shouldn't get an error trying to
calculate with -0 (with the obvious exception of trying to divide by
it)? If you need only positive values you could use abs().

John



> -----Original Message-----
> From: Dawson, Michael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 05, 2005 11:45 AM
> To: CF-Talk
> Subject: CF Allows Negative Zero?
> 
> If you enter a negative zero (-0), CF keeps it as is and does not 
> strip the negative sign.
> 
> I would assume that is because CF may think this is a string, however,

> it passes the IsNumeric() function.
> 
> Should I just use the val() in my setter when I expect a numeric value

> to be passed?
> 
> Thanks
> M!ke


This e-mail, including attachments, is intended for the exclusive use of
the person or entity to which it is addressed and may contain
confidential or privileged information.  If the reader of this e-mail is
not the intended recipient or his or her authorized agent, the reader is
hereby notified that any dissemination, distribution or copying of this
e-mail is prohibited.  If you think that you have received this e-mail
in error, please advise the sender by reply e-mail and then delete this
e-mail immediately.

Thank you.  Epilepsy Foundation


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189409
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to