I want to calculate some percentage that is creating values 0.0034657, 0.000002376876868, 0.00004557600 etc. like this, but in my react project I want to round the values shown here, and print those values like this:
0.0034, 0.0000023, 0.000045
Can someone please tell me the logic for this, or any arithmetic functions to use for this?
Values : 0.0034657, 0.000002376876868, 0.00002357600
Expected output : 0.0034, 0.0000023, 0.000023