to_hex ( integer ) → textConverts the number to its equivalent two's complement hexadecimal representation.
to_hex(2147483647) → 7fffffff
to_hex(-1234) → fffffb2e
Functions / String Functions And Operators
Converts the number to its equivalent two's complement hexadecimal representation.
Reading PG 18current·documented in 25 of 27 versions, 7.3 to 20
to_hex ( integer ) → textConverts the number to its equivalent two's complement hexadecimal representation.
to_hex(2147483647) → 7fffffff
to_hex(-1234) → fffffb2e
to_hex ( bigint ) → textConverts the number to its equivalent two's complement hexadecimal representation.
to_hex(2147483647) → 7fffffff
to_hex(-1234) → fffffb2e
Definition snapshot: b7bd9cda · English manual source