Operating System - HP-UX
1748078 Members
5420 Online
108758 Solutions
New Discussion юеВ

Re: Question about minor numbers

 
SOLVED
Go to solution
dictum9
Super Advisor

Re: Question about minor numbers

Quote--------
No, this is a _hexadecimal_ number and so each digit ranges from 0-F for overall values of 00-FF. That's 256 unique numbers.
--------------------------


Thank you. that's what I was looking for.
Where can I can get this complete list of these 256 numbers?
James R. Ferguson
Acclaimed Contributor

Re: Question about minor numbers

Hi (again):

> Where can I can get this complete list of these 256 numbers?

Well, manufacture one if you want:

# perl -le 'for (0..255) {printf "%3d %2X\n",$_,$_}'

Regards!

...JRF...
Michael Steele_2
Honored Contributor

Re: Question about minor numbers

Hi

0
1
2
3
4
5
6
7
8
9
0
a
b
c
d
e

16** = 256
Support Fatherhood - Stop Family Law
Dennis Handly
Acclaimed Contributor

Re: Question about minor numbers

>how do I translate these into decimal?

In a real shell you can do:
typeset -i10 x=16#ff; echo $x

>How do I increment the minor numbers?

typeset -i16 x=$(( 16#NN + 1 )); echo $x
dictum9
Super Advisor

Re: Question about minor numbers

Great, thank you.