: isValid

Monday, February 21st, 2011

What is the point of having isValid “float” if it’s the same as isNumeric? A coworker ran into this today, but how else, without using regex, could you easily validate the presence of decimals? Sigh. It doesn’t happen often, but it’s a pain that float just validates as an integer and not as what you would expect, a float.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.