Поделиться через


__max

Returns the larger of two values.

type __max(
      type a,
      type b 
);

Параметры

  • type
    Any numeric data type.

  • a, b
    Values of any numeric type to be compared.

Возвращаемое значение

__max returns the larger of its arguments.

Заметки

The __max macro compares two values and returns the value of the larger one. The arguments can be of any numeric data type, signed or unsigned. Both arguments and the return value must be of the same data type.

Требования

Routine

Required header

__max

<stdlib.h>

Пример

For more information, see the example for __min.

Эквивалент в .NET Framework

System::Math::Max

См. также

Основные понятия

Floating-Point Support

__min