I am trying to convert 08 and 09 to 8 and 9 respectively, but they are not getting converted.
I tried 08+0 , 09+0 but the result I obtained in both the cases is 0.
The above method is working for 01 to 07 and I am obtaining results as 1,2,...7, but not for 08 and 09. Please help me out.
Jump to Post
If you precede an integer with a zero, it is assumed to be in octal notation. If you need an integer outputted with a leading zero, use
All 6 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.