Hex

From Sega Retro

This template displays a hexadecimal value with the appropriate formatting.

Example

{{hex|0123}} returns 0123.

{{hex|$78000}} returns $78000.

{{hex|0x1800}} returns 0x1800.