HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
General
cancel
Showing results for
Did you mean:

## How do i convert maxdsiz from hex to integer value

SOLVED
Go to solution
Valued Contributor

## How do i convert maxdsiz from hex to integer value

Hello experts

From current kernel,
kmtune|grep maxdsiz
maxdsiz 0x90000000 - 0X90000000
maxdsiz_64bit 0x100000000 - 0X100000000

How do I calculate 0x90000000 & 0x100000000 into integer value ?

Thank you.
7 REPLIES
Honored Contributor

## Re: How do i convert maxdsiz from hex to integer value

Matthew

you can use the calculator scientific mode (on a windows workstation).
select Hex
enter the value
click on Dec

you get the integer value.

Regards
Jean-Luc
fiat lux
HPE Pro

## Re: How do i convert maxdsiz from hex to integer value

we don't need no stinkin windows ;0)

echo "ibase=16;90000000"|bc
echo "ibase=16;100000000"|bc

HTH

Duncan

HTH

Duncan
Acclaimed Contributor

## Re: How do i convert maxdsiz from hex to integer value

Hi Matthew:

There's always Perl, too:

# perl -e 'printf "%d\n",0x100000000'
4294967296

...and Perl has no artificial limits.

Regards!

...JRF...

Valued Contributor

## Re: How do i convert maxdsiz from hex to integer value

so, the value is hex in kernel right ?
as check from hpux 11.0 11.11 have this format. but in hpux 11.23 never see this format.
Acclaimed Contributor
Solution

## Re: How do i convert maxdsiz from hex to integer value

Hi (again):

> so, the value is hex in kernel right ?

By the way, a leading zero (0) in a series of numbers means octal. Hence, 0777 is an octal value whereas 777 would be a decimal number and 0x777 would be a hexadecimal one.

Regards!

...JRF...
Valued Contributor

## Re: How do i convert maxdsiz from hex to integer value

Thank you, you guys have completely answer my questions.
HPE Pro

## Re: How do i convert maxdsiz from hex to integer value

>How do I calculate 0x90000000 & 0x100000000 into integer value?

With 11.23 ksh you can do:
\$ typeset -i10 x=16#90000000; echo \$x
2415919104
(Unfortunately the Posix shell is limited to 32 bits. )-:

You can also use gdb to act as a calculator.
(gdb) p 0x90000000