How to find the rounded value of 0.00037878768
02:06 30 Nov 2023

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

javascript math logic