Math.HexToDec
-------------

Converts a hexadecimal number to a normal decimal number.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Math](component_Math.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Math.HexToDec"; hexNumber ) 

**MBS**( **"Math.HexToDec";** /\* Converts a hexadecimal number to a normal decimal number. \*/  
**$hexNumber**) /\* The hex number you want to convert to hexadecimal.e.g. FEDC \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| hexNumber | The hex number you want to convert to hexadecimal. | FEDC |

### Result

Returns the decimal number.

### Description

Converts a hexadecimal number to a normal decimal number.  
Works with 32 bit integers, so hex number has a maximal length of 8 characters.  
### Examples

Query number for hex number FFFF (returns 65535)

 MBS ( "Math.HexToDec"; "FFFF" )  
### Example Databases

- [Color Panel](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Color%20Panel.shtml#3ScriptAnchor_)
- [Math/Hexadecimal numbers](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Math/Hexadecimal%20numbers.shtml#1GroupButton24.0000000414.000000049.0000000541.0000000LayoutObjectAnchor_)

### Blog Entries

- [Using Emojis in FileMaker](https://www.mbsplugins.de/archive/2018-09-17/Using_Emojis_in_FileMaker/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.5pr3](https://www.mbsplugins.de/archive/2011-12-18/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[Math.GetBit](MathGetBit.md) - [Math.InchToPixel](MathInchToPixel.md)

[HTML Version](MathHexToDec.shtml)