N decimal of price
-
Brower: Chrome 96.0.4664.110 (Official Build) (64-bit)
Version: WP Smart Contracts 1.2.12Description: N decimal of price.
Expectation: call wpsc-fe-nft.js->transformFromDecimals(), return (price / asFLoat).
Error: It seems a BigNumber problem.
const num = a / b;
(1.29e+22/1000000000000000000) = 12,899.999999999998
(1.25e+22/1000000000000000000) = 12,499.999999999998
(1.05e+22/1000000000000000000) = 10,499.999999999998if the price is over 10,000, there may be possibly get a BigNumber problem?
Thanks for your help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘N decimal of price’ is closed to new replies.