export function prevPow10(x: bigint): bigint {
  if (x<=1n) return 0n;
  var n = x.toString(10).length;
  return BigInt("1" + "0".repeat(n-1));
}