Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: doubt on comparision operator #3232

    Actually when we compare, compiler checks the type.. one u declared as float and other is number.. the default one the compiler takes in decimal format as double.. So, in representation double as 8 bytes and accurate value is entered.. while float contains 4 bytes and is comparitively less accurate than double.. So, double having atleast some minute value greater than float value.. thats why its value is true and hence value is one..

Viewing 1 post (of 1 total)