• Get max value.

    Example

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

    const a = BigDecimal.fromString("100.525678");
    const b = BigDecimal.fromString("100.525679");
    decimals.max(a, b); // => 100.525679

    Returns

    the max value.

    Parameters

    • a: BigDecimal

      the BigDecimal number.

    • b: BigDecimal

      the BigDecimal number.

    Returns BigDecimal

Generated using TypeDoc