Math class
An intrinsic object that provides basic mathematics functionality and constants.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
- Math({num? e, num? ln10, num? ln2, num? log2e, num? log10e, num? pi, num? sqrt12, num? sqrt2, num abs(num)?, num acos(num)?, num asin(num)?, num atan(num)?, num atan2(num, num)?, num ceil(num)?, num cos(num)?, num exp(num)?, num floor(num)?, num log(num)?, num max([Iterable?])?, num min([Iterable?])?, num pow(num, num)?, num random()?, num round(num)?, num sin(num)?, num sqrt(num)?, num tan(num)?, num clz32(num)?, num imul(num, num)?, num sign(num)?, num log10(num)?, num log2(num)?, num log1p(num)?, num expm1(num)?, num cosh(num)?, num sinh(num)?, num tanh(num)?, num acosh(num)?, num asinh(num)?, num atanh(num)?, num hypot([Iterable?])?, num trunc(num)?, num fround(num)?, num cbrt(num)?})
-
factory
Properties
- abs ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - acos ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - acosh ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - asin ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - asinh ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - atan ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - atan2 ↔ num Function(num, num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - atanh ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - cbrt ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - ceil ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - clz32 ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - cos ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - cosh ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - e → num
-
Available on Math, provided by the Math$Typings extension
The mathematical constant e. This is Euler's number, the base of natural logarithms.no setter - exp ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - expm1 ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - floor ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - fround ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- hypot ↔ num Function([Iterable?])
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - imul ↔ num Function(num, num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - ln10 → num
-
Available on Math, provided by the Math$Typings extension
The natural logarithm of 10.no setter - ln2 → num
-
Available on Math, provided by the Math$Typings extension
The natural logarithm of 2.no setter - log ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - log10 ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - log10e → num
-
Available on Math, provided by the Math$Typings extension
The base-10 logarithm of e.no setter - log1p ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - log2 ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - log2e → num
-
Available on Math, provided by the Math$Typings extension
The base-2 logarithm of e.no setter - max ↔ num Function([Iterable?])
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - min ↔ num Function([Iterable?])
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - pi → num
-
Available on Math, provided by the Math$Typings extension
Pi. This is the ratio of the circumference of a circle to its diameter.no setter - pow ↔ num Function(num, num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - random ↔ num Function()
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - round ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sign ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - sin ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - sinh ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - sqrt ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - sqrt12 → num
-
Available on Math, provided by the Math$Typings extension
The square root of 0.5, or, equivalently, one divided by the square root of 2.no setter - sqrt2 → num
-
Available on Math, provided by the Math$Typings extension
The square root of 2.no setter - tan ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - tanh ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair - trunc ↔ num Function(num)
-
Available on Math, provided by the Math$Typings extension
getter/setter pair
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