NumToHex

< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Converts a specified number to a hexadecimal string, optionally of the specified width.

Syntax

(string) NumToHex ToConvert:int Width:int

Example

string_var hex_index

let hex_index := NumToHex 42, 2

; hex_index == "2A"

See Also