Int to Hex

BlockMath

Convert an integer to a hexadecimal number.

Inputs

IntegerRequired

Integer to convert.

Example: 42

Outputs

Hexadecimal Number

Converted hexadecimal value.

Example: 2a

Build a bot using blocks like Int to Hex

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: int_to_hex
  • Value block: it can be used directly inside expressions, e.g. "Result: " + int_to_hex(Args{...}).

Inputs

FieldInventScript nameValue
Integerintegere.g. "42"

Outputs

FieldInventScript nameValue
Hexadecimal Numberhexadecimal_numbere.g. "2a"

Example InventScript

intToHex := int_to_hex(Args{integer: 42})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Hexadecimal Number: " + intToHex,
})

More math blocks