Search

MATH

Articles

Absolute value

Absolute value of a number

Syntax

Absolute value(number)

Sample

  1. Absolute value(-123) => 123
  2. Absolute value(123) => 123

Parameter Details

Input Parameter Name Description
number an integer value Percentage

To find the percentage

Syntax

percentage(outof,total)

Sample

  1. percentage(10,9) => 90.0

Parameter Details

Input Parameter Name Description
outof outof value to calculate percentage
total total value to calculate percentage

Factorial

To find factorial of a number

Syntax

Factorial(number)

Sample

  1. Factorial(3)=> 6

Parameter Details

Input Parameter Name Description
number an integer value

Loss Percentage

To find the loss percentage eg.lossPercentage(loss, costprice)

Syntax

lossPercentage(loss, costprice)

Sample

  1. lossPercentage(30,100) => 30.0

Parameter Details

Input Parameter Name Description
Costprice Costprice value to find the loss percentage
loss Loss value to find the loss percentage

Profit Percentage

To find the loss percentage eg.lossPercentage(loss, costprice)

Syntax

ProfitPercentage(Profit, costprice)

Sample

  1. ProfitPercentage(50, 100)=> 50.0

Parameter Details

Input Parameter Name Description
Costprice Costprice value to find the Profit percentage
loss Loss value to find the Profit percentage

Discount Percentage

To find the discount in percentage.

Syntax

DiscountPercentage(discount, costprice)

Sample

  1. DiscountPercentage(30,100)=> 30

Parameter Details

Input Parameter Name Description
Costprice Costprice value to find the discount percentage
discount discount value to find the discount percentage

Random Number Generator

Create Random Number within a given range.

Syntax

Random Number Generator(start,end)

Sample

  1. Random Number Generator(1,3)=>2

Parameter Details

Input Parameter Name Description
Start Start Range Value
End End Range Value

Add

To add two Variables

Syntax

Add(num_1,num_2)

Sample

  1. Add(1,2)=> 3

Parameter Details

Input Parameter Name Description
num_1 integer value
num_2 integer value

Subtract

To Subtract two Variables

Syntax

Subtract (num_1,num_2)

Sample

  1. Subtract (5,3)=> 2

Parameter Details

Input Parameter Name Description
num_1 integer value
num_2 integer value

Did you find what you were looking for?