DIAdem API Reference

Function: MaxV

  • Updated2023-02-21
  • 2 minute(s) read

Determines the greater of two numbers.

ReturnValue = MaxV(Value1,Value2)

Input Parameters

Value1 Specifies a numeric value, a variable, or a data channel.
Value2 Specifies a numeric value, a variable, or a data channel.

Return Parameters

ReturnValueReturns numeric values.
Note  Use the command ValMax instead of the function MaxV if you are not calculating quantity-based because the ValMax command is faster.
Note  You must use the Calculate command in scripts to calculate data channels with formulas. Compute the data channels according to the syntax in the Calculator. Refer to the procedures Executing Channel Calculations in the Calculator and Assigning a Value to a Variable in the Calculator for more information about the Calculator.
The physical input quantities and the result quantities are the same.
The Input and Result Quantities for Quantity-Based Calculations page contains an overview of the input quantities and result quantities of all functions. Refer to the Help page Calculating Quantity-Based and Non-Quantity-Based in DIAdem for the conditions and rules for quantity-based calculations.

Related Functions

Command: ValEqual | Command: ValEqualGT | Command: ValEqualLT | Command: ValGT | Command: ValLT | Command: ValMax | Command: ValMin | Function: ^ | Function: Abs | Function: Ceil | Function: Deg | Function: Eex | Function: Exp | Function: Fak | Function: Floor | Function: Frac | Function: Lg | Function: Ln | Function: MinV | Function: MinV | Function: Mod | Function: Rad | Function: Random | Function: Rnd | Function: Round | Function: RTP (Real To Part of Date) | Function: RTT (Real to Text) | Function: Sign | Function: SND | Function: Sqr | Function: Sqrt | Function: Trunc | Function: VU