in reply to Re: To hex EXPR or 'EXPR' is my question
in thread To hex EXPR or 'EXPR' is my question
But it also gets more confusing as they will also interpret number is each others bases if that is indicated by a prefix in their arguments:But 175 octal is 125 decimal. I would say the confusing thing may be that oct does interpret a number as hex when prefixed by '0x', but hex doesn't interpret a number as octal when it's prefixed by 0(?!x). Now, I wouldn't want hex to do so, as hex bitfields are often fixed length, and will have leading 0s.print hex '0' . '175';; 373
|
|---|