# Conversion hex to BigInt node red

**URL:** <https://discourse.nodered.org/t/conversion-hex-to-bigint-node-red/17684>\
**Category:** General\
**Created:** [8 November 2019 16:02 UTC](https://discourse.nodered.org/t/conversion-hex-to-bigint-node-red/17684 "2019-11-08T16:02:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meng](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@Meng](https://discourse.nodered.org/u/Meng)\
**Post date:** [8 November 2019 16:02 UTC](https://discourse.nodered.org/t/conversion-hex-to-bigint-node-red/17684/1 "2019-11-08T16:02:57Z")

</div>

I imported [BigInter.js](https://github.com/peterolson/BigInteger.js) to the functionGlobalContext of node-red, however when I use `var maximumByte = BigInt("FF", 16);` (for bigInt the function is not known) it gives the following error `SyntaxError: Cannot convert FF to a BigInt` How can this be solved?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 November 2019 16:42 UTC](https://discourse.nodered.org/t/conversion-hex-to-bigint-node-red/17684/2 "2019-11-08T16:42:07Z")

</div>

I think you might be using the wrong syntax - try these other methods

> **[Convert Big Hex to Big Decimal with JS BigInts](https://coolaj86.com/articles/convert-hex-to-decimal-with-js-bigints/)**
>
> Now that JavaScript has native BigInt support it's finally easy to convert from hex strings to decimal strings.
