• Converts BigDecimal number into RAD BigInt.

    Example

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

    const value = BigDecimal.fromString("12.5");
    decimals.toRad(value); // => 12500000000000000000000000000000000000000000000

    Returns

    the BigInt representation of the RAD BigDecimal.

    Parameters

    • value: BigDecimal

      the BigDecimal number.

    Returns BigInt

Generated using TypeDoc