Reply
Number base query [hijack split thread]
Old 09-20-2009, 08:08 AM Number base query [hijack split thread]
Junior Talker

Posts: 1
Name: Dipty Fatema
Trades: 0
Hi i am novice php programmer. Can anybody help me about octal and hexadecimal numbers?
<?php
$a = 0123; // octal number (equivalent to 83 decimal)
?>
In this code how can octal can be equal to 83decimal?
Same question is about hexadecimal. Here it equals 26deimals? Please give me a better explanation.

Last edited by dipty; 09-20-2009 at 08:10 AM..
dipty is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 09-20-2009, 08:15 AM Re: Number base query [hijack split thread]
chrishirst's Avatar
Super Moderator

Posts: 22,318
Location: Blackpool. UK
Trades: 0
http://en.wikipedia.org/wiki/Octal

http://en.wikipedia.org/wiki/Hexadecimal
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Number base query [hijack split thread]
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12930 seconds with 13 queries