• Converts BigDecimal into BigInt.

    Example

    import { decimals } from "@protofire/subgraph-devkit";
    import { BigDecimal } from "@graphprotocol/graph-ts";

    const n = BigDecimal.fromString("1234.56");
    decimals.toBigInt(n); // => 123456

    Returns

    the BigInt representation of the BigDecimal.

    Parameters

    • value: BigDecimal

      the BigDecimal number.

    Returns BigInt

Generated using TypeDoc