I've see the letter P in hexidecimal constants, like 0XfP3. What does it mean?

John Zukowski

As of JDK 5.0, the Java programming language now supports hexadecimal floating point literals. 0XfP3 = 120. The 0X prefix means what follows is hex. F = 15. P3 means 2 ^ 3 (2 raised to third power or 8). 15 * 8 = 120

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact