jeudi 4 août 2016

Why are exponents required for hex real numbers in Java

In java for example this is a hex number 0x10

0x10.2P2 this is a correct hexadecimal double.

But why 0x1f.2 is not correct. Why we cannot use that while 0x1f.2P1 should give the same result but it works.

Aucun commentaire:

Enregistrer un commentaire