Skip to main content
Module

x/math/gte.ts

Deno module for high-precision calculations and scientific computing
Latest
File
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { BigSource, Big } from "./big/mod.ts";
/** * Returns true if `a` greater than or equal to `b`, otherwise returns false. * Throws if `a` or `b` is invalid. * @param a * @param b */export function gte(a: BigSource, b: BigSource): boolean { return (a instanceof Big ? a : new Big(a)).gte(b);}