How do you set a double value to a "non-value"

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-06-01T09:06:43Z Indexed on 2010/06/01 9:13 UTC
Read the original article Hit count: 202

Filed under:
|
|

I have two double data elements in an object.

Sometimes they are set with a proper value and sometimes not. When the form field from which they values are received is not filled I want to set them to some value that tells me, during the rest of the code that the form fields were left empty.

I can't set the values to null as that gives an error, is there some way I can make them 'Undefined'.

PS. Not only am I not sure that this is possible, it might not also make sense. But if there is some best practice for such a situation I would be keen to hear it.

© Stack Overflow or respective owner

Related posts about java

Related posts about double