platform-bible-utils
    Preparing search index...

    Function roundZoom

    • Experimental

      Rounds a zoom factor to one decimal place. CSS zoom and repeated + ZOOM_STEP additions accumulate binary-float error (e.g. 1.1 + 0.1 = 1.2000000000000002); rounding keeps stored and compared factors stable.

      Parameters

      • factor: number

        The zoom factor to round

      Returns number

      The factor rounded to one decimal place This export is unstable and may change shape or disappear without notice