def floor_significant(x, n=1): """Floor x to n significant digits.""" return 0 if x==0 else floor_digits(x, -int(floor(log10(abs(x)))) + (n-1))