• Creates BigDecimal number from Float.

    Example

    import { decimals } from "@protofire/subgraph-devkit";

    decimals.fromFloat(1000000.123);

    Returns

    the BigDecimal representation of the Float.

    Parameters

    • value: number

      the Float number.

    Returns BigDecimal

Generated using TypeDoc