Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web3/types/bignumber.d.ts>BigNumber#gte

Deno / TypeScript to Ethereum Connector
Latest
method BigNumber.prototype.gte
import { BigNumber } from "https://deno.land/x/web3@v0.11.1/types/bignumber.d.ts";

Returns true if the value of this BigNumber is greater than or equal to the value of n, otherwise returns false.

(0.3 - 0.2) >= 0.1                    // false
x = new BigNumber(0.3).minus(0.2)
x.gte(0.1)                            // true
BigNumber(1).gte(x)                   // true
BigNumber(10, 18).gte('i', 36)        // true

Parameters

n: BigNumber.Value

A numeric value.

optional
base: number

Returns

boolean