Big time mainframe background and am trying to learn JAVA on my own.
So here is my simple question...
I am trying to create test data and insert into my DB2 database. Why
doesn't the math work here.
double myNumber = 0;
if (myNumber < .15){
myNumber =+ .0001;
}else{
myNumber = .04;
}
when I insert into the database, myNumber is always the same value
of .0001? This seems like simple logic but it is making me go nuts.
Should I be using the BigDecimal to get this to work?
What simple concept am I missing.... Please be easy on the old guy...