linXiv frontend (TS/JS)
    Preparing search index...

    Function clampZoom

    • Clamp to the supported range and round to whole percentage points: repeated ±0.1 steps accumulate float error (0.5 stepped up 5× → 0.99999…), which would otherwise break zoom === DEFAULT_ZOOM.

      Parameters

      • zoom: number

      Returns number