We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Atm, the way we convert from an absolute value to a relative value is using:
const relative = absoluteUint64.compact() / Math.pow(10, config.tokenDivisibility);
The absoluteUint64.compact() may fail if the absoluteUint64 is >= 2^53.
absoluteUint64.compact()
The compact is used because our native UInt64 doesn't have natives division or multiplication like we do have addition and subtraction.
Question, the TS SDK has a dependency to the "long" package.
https://github.com/nemtech/symbol-sdk-typescript-javascript/blob/main/package.json#L109
https://www.npmjs.com/package/long
Should we use the library instead of having our own custom Uint64? Why using both RawUInt64 and Long?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Atm, the way we convert from an absolute value to a relative value is using:
The
absoluteUint64.compact()
may fail if the absoluteUint64 is >= 2^53.The compact is used because our native UInt64 doesn't have natives division or multiplication like we do have addition and subtraction.
Question, the TS SDK has a dependency to the "long" package.
https://github.com/nemtech/symbol-sdk-typescript-javascript/blob/main/package.json#L109
https://www.npmjs.com/package/long
Should we use the library instead of having our own custom Uint64? Why using both RawUInt64 and Long?
The text was updated successfully, but these errors were encountered: