User-defined function example
This example shows how to create a user-defined function. Two input parameters of type decimal and a return type of type decimal are used. You can create a function to calculate a percentage that is based on the value of the two input parameters.
Create a user-defined function: