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 speparametercifier. If not specified, a default value of 2 is used.

Input

{{ 9 | hex:3 }}

Output

009
© 2014-2023 Cyotek Ltd. All Rights Reserved.
Documentation version 1.8 (buildref #135.15699), last modified 2023-04-04. Generated 2024-02-29 10:57 using Cyotek HelpWrite Professional version 6.19.1