Node Functions In Sap Pi

Posted on
Node

. Arithmetic. Boolean. Constants. Conversions.

Functions

Pi Udf

Node Functions. Statistics. TextARITHMETIC FUNCTIONSThese are standard functions used in graphical mapping whenever we use only numerical values. These include values with digits after the decimal point. If it is not a digit, then the system throws a Java exception. The default data type for all calculations is 'float'.The output structure depends upon the result.

If the result is a value with decimal places existing, then the output value remains unchanged. If the result is a value with zero after decimal point, then the integer value of the result is considered. The result of 23.5 + 6.5 = 30 and not 30.0.The details of the standard Arithmetic functions are as follows:add: This function simply sums up the input values and produces the summation value as output.Here we are considering the marks obtained by a student.

In the source structure, all marks are specified individually. But in the target structure, Physics Chemistry and Biology are considered as a single subject Science. Also History and Geography are optional and considered as single.subtract: This function simply subtracts the second input value from the first and produces the value as output.abs: This function gives the absolute value of the input fed.

If the input value is a negative number (say -100), then the output will become a positive one (100).Here we are calculating the difference in marks scored between History and Geography. If the first input is higher than the second, then it is a positive value else a negative one.