math
– Math operations for DiddiScript¶
This library provides tools to operate integers and floats, using DiddiScript functions.
Functions¶
- sum_operation(*args)¶
- Parameters:
args – An unlimited number of values to sum.
Sum all the numbers and return a Floating.
- subtraction_operation(*args)¶
- Parameters:
args – An unlimited number of values to subtract.
Subtract all the numbers and return a Floating.
- multiplication_operation(*args)¶
- Parameters:
args – An unlimited number of values to multiply.
Multiply all the numbers and return a Floating.
- division_operation(*args)¶
- Parameters:
args – An unlimited number of values to divide.
Divide all the numbers and return a Floating.
- power(num, exp)¶
- Parameters:
num – The number to multiply exp times.
exp – The power for num.
Calculate a
num ^ exp
operation.