Please tell me if I can read through the API to the precision bits of the spot price and convert it to the parameters required by Math.floor

Author: wang12562, Created: 2022-12-11 17:03:52, Updated:

The parameter value of the 4-digit read to spot price accuracy after the decimal point is 4 The price is 0.5455

var s1=Math.floor((0.5455*0.999)*jingdu)/jingdu;

Please tell me how to change the variable jingdu to 10000 So this is how you convert the read through the API to price precision 4 to 10,000.
PS: If read through the api to price accuracy of 5 variables jingdu is 100000 and so on


More

wang12562Thank you. I've found a solution with the _N( function.