HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

toDecimal

Convert a hexadecimal to a decimal number

Usage

tronWeb.toDecimal()

Parameters
String-Hex string

Returns
Number-The hexadecimal value represented by the passed in string.

Example

tronWeb.toDecimal('0x15')
>21