AutoMovie API
    Preparing search index...

    Function roundAutoMovieDrawingScalar

    • Round one drawing scalar onto the fixed output grid of AUTOMOVIE_DRAWING_DECIMALS decimal places.

      Halves round towards positive infinity, as Math.round does, and negative zero is normalized to zero: -0 and 0 stringify differently in a digest's input, so without it a digest would depend on which side of an axis a value approached from.

      Parameters

      • value: number

        Scalar in the drawing's units, usually metres or square metres.

      Returns number

      The value on the grid, never -0.