Displaying temperature and pressure at the same time using java

PaulS:

if(a != 0)

{
  sensor1 = beta /(log(((1025.0 * 10 / a) - 10) / 10) + beta / 298.0) - 273.0;
}
else
{
  sensor1 = someOtherValue;
}



I have no idea what you want to use as someOtherValue, when a is 0.

I dont know, maybe the result of the equation when a=0.00001? Is it correct?