Basic Numerical Operations-4.420.1000
Basic Numerical Operations | |
|---|---|
Author Pavan K
Primary Features This plugin covers a broad range of numerical operations such as Round, Round Up, Round Down, Round Up and Round Down Decimal Part, Factorial, Square Root, To Float, To Int, Check Number is even or odd, Truncate the input number.
|
Input (Required)
Select one of the operations
One numerical data = Integer or float
Advanced Input (Optional)
Number to indicate round up/down position
Return Value
Processed number
Return Code
0 Success
1 Failure (Invalid Input Type)
99 All other exceptional cases
Operations and parameters
|
|
| Example | |
| Selection | Description | Input | Output |
Operation | Round | This function returns a floating point number that is a rounded version of the specified number, with the specified number of decimals. | 1.9 | 2 |
| Round Up | This function always rounds a number up to the next largest integer. | 2.3 | 3 |
| Round Down | This function returns the largest integer less than or equal to a given number. | 2.3 | 2 |
| To Float | This function always rounds a number up to the next largest integer. | 100 | 100 |
| To Int | This function returns an integer object from any number. | 2.365 | 2 |
| Square root | This function returns the square root of a number. | 144 | 12 |
| Truncate | This function returns the integer part of a number by removing any fractional digits. | 10.362 | 10 |
| Factorial | This function from the math module returns the factorial value for a given integer. | 10 | 3628800 |
| IsOdd | Return True If Input Data is Odd Else False. | 3 | TRUE |
| IsEven | Return True If Input Data is Even Else False. | 2 | TRUE |
| Decimal Round Up | This function always rounds a number up to the next largest Decimal by given precision | 3.14159 | 3.1416 |
|
|
| Rnd Pr = 5 |
|
| Decimal Round Down | This function returns the largest Decimal less than or equal to a given Decimal by given precision | 3.14159 | 3.1415 |
|
|
| Rnd Pr = 5 |
|
Input Data |
| User input Digits (Integer or Float) |
| |
Round Precision | 2 (Integer type) | Only valid for Decimal Round Up or Decimal Round Down operation |
| |