Round to specified significant figures.
val (float | int) – The value to be rounded
sf (int) – The number of significant figures
The rounded value
float