Hex Editor Neo provides a number of built-in functions, that perform type cast on their parameters:
| Function Name | Description | |||||||||||||||
| int() | Convert a given parameter to an integer value. Floating-point numbers are truncated to nearest integer, strings are parsed as containing an integer. If parsing error occurs, the result of the conversion is zero. | |||||||||||||||
| double() | Convert a given parameter to a floating-point value. If used on string, a string is parsed as containing a floating-point number. If parsing error occurs, the result of the conversion is zero. | |||||||||||||||
| string() | Convert a given parameter to a string value. | |||||||||||||||
| type() |
Determine the type of the expression. Returns one of the following values (symbolic names are predefined in stddefs.h):
|
int(2.5) // results to 2 (integer)
int("89") // results to 89 (integer)
double("7.8") // results to 7.8 (floating-point)
double("string") // results to 0.0 (floating-point)