NumberAdder class
A powerful number addition and calculation utility.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
add(
double a, double b) → double - Adds two numbers together.
-
addAll(
List< double> numbers) → double - Adds a list of numbers together.
-
addIntegers(
int a, int b) → int - Adds two integers and returns the result.
-
addPercentage(
double number, double percentage) → double - Adds a percentage to a number.
-
addWithPrecision(
double a, double b, int precision) → double - Adds numbers with precision handling.
-
compoundAdd(
double principal, double rate, int times) → double - Calculates compound addition (useful for financial calculations).
-
sumRange(
int n) → int - Calculates the sum of numbers from 1 to n.