You could try this borrowed from https://www.codegrepper.com/code-examples/python/how+to+round+to+3+significant+figures+in+python
round(Number, SigFigs - 1 -round(floor(log10(|Number|))))
Here’s an example in the Desmos Calculator
https://www.desmos.com/calculator/ardrybomi2