Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: True Intege...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 28 of 28 Topic 16073 of 16204
Post > Topic >>

Re: True Integer, Double

by Roedy Green <see_website@[EMAIL PROTECTED] > May 12, 2008 at 08:28 PM

On Mon, 12 May 2008 10:50:14 -0400, RC <raymond.chui@[EMAIL PROTECTED]
>
wrote, quoted or indirectly quoted someone who said :

>How do I make sure a number is a TRUE Integer or TRUE Double?

what constitutes a integer or double in Java source is different that
in data.  Data is laxer since you KNOW the type to be coerced to.

However if you wanted to enforce stricter rules, write a regex to
describe your allowed patterns (e.g. precise number of decimal
places), or see what effects you can get with a DecimalFormat and a
mask using the parse method.

See http://mindprod.com/jgloss/regex.html
http://mindprod.com/jgloss/decimalformat.html
-- 

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 




 28 Posts in Topic:
True Integer, Double
RC <raymond.chui@[EMAI  2008-05-12 10:50:14 
Re: True Integer, Double
"Kenneth P. Turvey&q  2008-05-12 15:00:58 
Re: True Integer, Double
ram@[EMAIL PROTECTED] (S  2008-05-12 15:02:32 
Re: True Integer, Double
Eric Sosman <Eric.Sosm  2008-05-12 11:10:01 
Re: True Integer, Double
RC <raymond.chui@[EMAI  2008-05-12 11:35:06 
Re: True Integer, Double
ram@[EMAIL PROTECTED] (S  2008-05-12 15:45:53 
Re: True Integer, Double
Eric Sosman <Eric.Sosm  2008-05-12 12:10:08 
Re: True Integer, Double
"John B. Matthews&qu  2008-05-12 13:54:51 
Re: True Integer, Double
Wojtek <nowhere@[EMAIL  2008-05-12 18:08:19 
Re: True Integer, Double
Mark Space <markspace@  2008-05-12 13:25:36 
Re: True Integer, Double
Eric Sosman <Eric.Sosm  2008-05-12 16:45:30 
Re: True Integer, Double
Mark Space <markspace@  2008-05-12 17:21:11 
Re: True Integer, Double
=?ISO-8859-15?Q?Arne_Vajh  2008-05-12 20:48:21 
Re: True Integer, Double
RC <raymond.chui@[EMAI  2008-05-13 10:07:35 
Re: True Integer, Double
Eric Sosman <Eric.Sosm  2008-05-13 10:46:37 
Re: True Integer, Double
Lew <lew@[EMAIL PROTEC  2008-05-13 19:39:58 
Re: True Integer, Double
Lew <lew@[EMAIL PROTEC  2008-05-13 19:39:04 
Re: True Integer, Double
=?ISO-8859-15?Q?Arne_Vajh  2008-05-14 20:13:01 
Re: True Integer, Double
Tim Smith <reply_in_gr  2008-05-17 22:21:30 
Re: True Integer, Double
=?ISO-8859-15?Q?Arne_Vajh  2008-05-12 18:41:08 
Re: True Integer, Double
"Arved Sandstrom&quo  2008-05-12 19:56:14 
Re: True Integer, Double
RedGrittyBrick <RedGri  2008-05-12 22:54:27 
Re: True Integer, Double
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-12 18:45:46 
Re: True Integer, Double
Patricia Shanahan <pat  2008-05-12 17:06:00 
Re: True Integer, Double
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-12 20:45:35 
Re: True Integer, Double
Tom Anderson <twic@[EM  2008-05-18 13:29:15 
Re: True Integer, Double
Tim Smith <reply_in_gr  2008-05-18 15:24:30 
Re: True Integer, Double
Roedy Green <see_websi  2008-05-12 20:28:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 7:34:25 CDT 2008.