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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    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

This function is free to use.

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


Math.BitwiseXOR - Math.DecodeNumber

💬 Ask a question or report a problem