// Generated by bynkc — do not edit by hand.
// commons mathf

import { Ok, Err, Some, None, type Result, type Option, type ValidationError } from "./runtime.js";

export function half(x: number): number {
  return x / 2.0;
}

export function intDiv(a: number, b: number): number {
  return Math.trunc(a / b);
}

export function area(w: number, h: number): number {
  return w * h;
}

export function isHalf(x: number): boolean {
  return x === 0.5;
}

export function demo(): boolean {
  const x = 5.0 / 2.0;
  const n = Math.trunc(5 / 2);
  const e = 1.5e-3;
  const big = 1e10;
  return isHalf(x - 2.0) && n === 2 && e > 0.0 && big >= 1.0 && area(2.0, 3.5) !== 7.5;
}

