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