export function ceil(x: number, pre: number=1): number {
  return Math.ceil(x/pre)*pre;
}