Function to_hex_i32

Source
pub fn to_hex_i32(n: i32, writer: &mut impl Write)
Expand description

Converts the given integer to its equivalent hexadecimal representation.

ยงExample

query T
select to_hex(2147483647);
----
7fffffff

query T
select to_hex(-2147483648);
----
80000000

query T
select to_hex(9223372036854775807);
----
7fffffffffffffff

query T
select to_hex(-9223372036854775808);
----
8000000000000000