Write a function that takes in a string representation of an integer or decimal number and returns the number of significant figures in the number.
Significant figures are an important part of science because they provide an easy way to show the precision of a measurement at a glance. In general, the more significant figures a number has, the more precise the measurement.
Significant figures are calculated by looking at the digits of a number and determining the total number of digits that are "significant". The rules for deciding which digits are significant are as follows:
0's in between non-zero digits (from any distance) are significant.0's (those to the left of all non-zero digits) are not significant.0's (those to the right of all non-zero digits) are significant only if the number contains a decimal point ..sig_figs("15030") ➞ 4
sig_figs("0.0067") ➞ 2
sig_figs("-290.00") ➞ 5
sig_figs("-8080.") ➞ 4
. and/or negative sign -.1.02 has 3 sig figs while 1.020 has 4.