TRY ONLINE

Default conversion from decimal to hexadecimal. For other bases, use the CLI command with --base-in flag.
Decimal
Hex
Hex output will appear here

EXAMPLES

Convert to hex:
cast to-hex 255
0xff
Convert to hex:
cast to-hex 1234567890
0x499602d2
Default is converting from decimal but you can specify a different base. Binary here:
cast to-hex 1010 --base-in 2
0xa

DOCUMENTATION

cast to-hex


NAME

cast-to-hex - Converts a number of one base to another

SYNOPSIS

cast to-hex [options] value

DESCRIPTION

Converts a number of one base to another

OPTIONS

--base-in base_in     The input base.

Common Options

-h
--help
    Prints help information.

SEE ALSO

cast