Re: [flexcoders] NaN to return a string?

2008-07-31 Thread Blair Cox
Turns out showing a zero could be implied that the calculation was a zero. This is bad, especially if the result is actually zero. Is there any way to return a string rather than a number? isNaN(mynumber) ? 0 : -- Blair Cox http://www.luminultra.com From: Sid Maskit [EMAIL PROTECTED]

Re: [flexcoders] NaN to return a string?

2008-07-31 Thread Sid Maskit
for a Better World http://www.CraftySpace.com blog: http://smaskit.blogspot.com/ - Original Message From: Blair Cox [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 9:27:02 AM Subject: Re: [flexcoders] NaN to return a string? Turns out showing a zero

Re: [flexcoders] NaN to return a string?

2008-07-31 Thread Blair Cox
-To: flexcoders@yahoogroups.com Date: Thu, 31 Jul 2008 09:43:06 -0700 (PDT) To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] NaN to return a string? Sure, just replace the 0 with whatever text you want, putting it inside single quotes since the entire statement is inside of double quotes. Since you