Skip to content
Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

Hex

Hex:String value:Int32
Parameter Mode Type Default Description
value In Int32 required The number to convert.

Returns: A string of 8 digits, 0 to 9 and A to F.

Description

Turns a number into hexadecimal digits. The result always has 8 digits, so negative numbers show their two's complement form.

Examples

Print Hex$(255)
Print Hex$(-1)
000000FF
FFFFFFFF

Related Commands

Bin, Chr, Instr, Left

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally