JavaOverView3
Data Type
  • Data Types :
    • byte is lowest and double highest value and precisions.
  • float is 32 bit single precision type
    • to Compare two float data, use this constructs if (Math.abs(a – b) < TOLERANCE)
      • TOLERANCE is about 10-6 float or 10-15 double data type
    • for integer data type you may simply use if(a= = b)
       
  • Double precisions : handling infinity
  •  Double precisions showing NaN
  • Double precision handling NaN and Infinite