Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Convert Decimal To Hexadecimal

Hello,

I got a problem in converting a minus decimal number into an hexadecimal number.

Input: -1073741703
Ouput: FFFFFFFFC0000079

If I'm converting this in the MS Calculator i got the right number, if i use the formula "num(-1073741703), '(HEX)')" i got a 3FFFFF87.

Maybe someone other has a solution for me?

1 Solution

Accepted Solutions
Not applicable
Author

Hi

did not work with a 64 bit number but with 48 bits

=num(pow(2,48) - 1073741703,'(HEX)')

Regards

Jürg

View solution in original post

2 Replies
Not applicable
Author

Hi

did not work with a 64 bit number but with 48 bits

=num(pow(2,48) - 1073741703,'(HEX)')

Regards

Jürg

Not applicable
Author

Works perfect, thanks!