Chapter 4. Ladder Diagram (LD) ProgrammingGFK-2950C February 2018 1894.10 Math FunctionsYour program may need to include logic to convert data to a different data type before using a Mathor Numerical function. The description of each function includes information about appropriate datatypes. Refer to the Conversion Functions section to understand how to convert one data type to adifferent data type.Function Mnemonics DescriptionAbsoluteValueABS_DINT, ABS_INT,ABS_REAL, ABS_LREALFinds the absolute value of a double- precision integer (DINT), signedsingle-precision integer (INT), or floating-point (REAL or LREAL) value. Themnemonic specifies the value's data type.Add ADD_DINT, ADD_INT,ADD_REAL,ADD_LREAL, ADD_UINTAddition. Adds two numbers.Divide4 DIV_DINT, DIV_INT,DIV_MIXED, DIV_REAL,DIV_LREAL, DIV_UINTDivision. Divides one number by another and outputs the quotient.Note: Take care to avoid Overflow conditions when performingdivisions.Modulus MOD_DINT, MOD_INT,MOD_UINTModulo Division. Divides one number by another and outputs theremainder.Multiply4 MUL_DINT, MUL_INT,MUL_MIXED,MUL_REAL,MUL_LREAL, MUL_UINTMultiplication. Multiplies two numbers.Note: Take care to avoid Overflow conditions when performingmultiplications.Scale SCALE Scales an input parameter and places the result in an output location.Subtract SUB_DINT, SUB_INT,SUB_REAL, SUB_LREAL,SUB_UINTSubtraction. Subtracts one number from another.4 To avoid Overflows when multiplying or dividing 16-bit numbers, use the Conversion Functions to convert the numbers toa 32-bit data type.