Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Underscores in Numeric Literals doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Underscores in Numeric Literals doubt

saloni jhanwar
Ranch Hand

Joined: Feb 09, 2012
Posts: 583


I've mindset that as 0x is used to represent hex number same as 0 at 0_52 is being used to represent octal number so actual number will be 52.Hence _ before 52 should not be valid.please help


Tell the difficulties that i am difficult.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

Locking this one. Please continue this discussion in your other thread here http://www.coderanch.com/t/585151/java/java/Underscores-Numeric-Literals

[My Blog] [JavaRanch Journal]
 
Consider Paul's rocket mass heater.
 
subject: Underscores in Numeric Literals doubt
 
Similar Threads
Octal number conversion
How many digits an octal number have ?
Underscores in Numeric Literals
parseInt problem
Range of Octals