phaser - v4.0.0-rc.4
    Preparing search index...

    Function FloorTo

    • Floors to some place comparative to a base, default is 10 for decimal place.

      The place is represented by the power applied to base to get that place.

      Parameters

      • value: number

        The value to round.

      • Optionalplace: number

        The place to round to. Default 0.

      • Optionalbase: number

        The base to round in. Default is 10 for decimal. Default 10.

      Returns number