WebHosting

Sunday, February 27, 2011

Comparing float with fixed int where the fraction part is not fixed

(int)<floatval>==999;

eg:
(int)99.777==99







No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

Error Message in DBeaver connecting using jdbc: Public Key Retrieval is not allowed

Fixing “Public Key Retrieval is not allowed” Error in MySQL with DBeaver   If you are trying to connect MySQL 8+ with DBeaver and suddenly...