Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

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

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


Math.BitwiseXOR - Math.DecodeNumber

Feedback: Report problem or ask question.