Converts a integer into a hexadecimal representation.

Input

{{ 255 | hex }}

Output

ff

Specifying a precision

hex supports an optional precision parameter. The precision parameter indicates the minimum number of digits desired in the resulting string. If required, the number is padded with zeros to its left to produce the number of digits given by the precision parameter. If not specified, a default value of 2 is used.

Input

{{ 9 | hex:3 }}

Output

009
© 2014-2026 Cyotek Ltd. All Rights Reserved.
Documentation version 1.8 (buildref #147.16253), last modified 2026-04-11. Generated 2026-04-11 11:51 using Cyotek HelpWrite Professional version 6.20.0