Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Math.DecToHex

Converts a number to a hexadecimal number.

Component Version macOS Windows Linux Server iOS SDK
Math 2.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Math.DecToHex"; number { ; NoLeadingZeros } )   More

Parameters

Parameter Description Example Flags
number The number you want to convert to hexadecimal. 1234
NoLeadingZeros Optional, whether to avoid leading zeros. Default is 0. 0 Optional

Result

Returns the hexadecimal number.

Description

Converts a number to a hexadecimal number.
Works with 32 bit integers.

Examples

Query number for 65535. Returns 0000FFFF.

MBS( "Math.DecToHex"; 65535 )

Query number without leading zeros for 4096. Returns 1000.

MBS( "Math.DecToHex"; 4096 )

Example Databases

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 18th August 2014


Math.BitwiseXOR - Math.DecodeNumber