[Overview][Types][Procedures and functions][Index] Reference for unit 'GraphMath' (#lazutils)

MakeMinMax

Ensures that the i1 argument is the smaller of the two Integer values.

Declaration

Source position: graphmath.pp line 82

procedure MakeMinMax(

  var i1: Integer;

  var i2: Integer

);

Arguments

i1

  

Integer value compared (and potentially updated) in the routine.

i2

  

Integer value compared (and potentially updated) in the routine.

Description

MakeMinMax swaps the values in i1 and i2 variable parameters when i1 is larger than i2. No actions are performed in the routine if i1 is smaller than i2, or the arguments have the same value.

Version info

Added in LazUtils version 3.0.


Version 4.0 Generated 2025-05-03 Home