Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 525 Bytes

numbers.md

File metadata and controls

37 lines (26 loc) · 525 Bytes
title
Numbers

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

to-hex

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

(x Number) | to-hex(prefix Bool?) | (y String)
16 to-hex(true) => "0xF"

Converts number x to a hex string y. Adds 0x prefix when prefix is true.