number_to_hex_string
This function converts a number to its corresponding hexadecimal string representation.
string number_to_hex_string(double the_number)
Parameters:
the_number
The number to convert.
Return value:
A string containing the hexadecimal representation of the number, or an empty string on error.
Remarks:
This function only works with positive numbers, without decimals. If the number contains decimals, these will simply be removed without rounding.
Please note that the returned string uses lowercase letters. If you want the result to be compatible with the hex_to_string function for example, it is necessary to call string_to_upper_case on it first.
Example:

    void main()
    {
    alert("number_to_hex_string test", number_to_hex_string(1000)); // Output should be 3e8.
    }