NumToHex

From the Fallout3 GECK Wiki
Revision as of 07:21, 21 July 2014 by imported>Odessa (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::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

[help]
(string) NumToHex ToConvert:int Width:int

Example

string_var hex_index

let hex_index := NumToHex 42, 2

; hex_index == "2A"

See Also