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