dart:core
double class
A doubleprecision floating point number.
Representation of Dart doubles containing double specific constants and operations and specializations of operations inherited from num. Dart doubles are 64bit floatingpoint numbers as specified in the IEEE 754 standard.
The double type is contagious. Operations on doubles return double results.
It is a compiletime error for a class to attempt to extend or implement double.
 Inheritance
Constructors
 double()
Properties
 sign → double
readonly, override
 Returns the sign of the double's numerical value. [...]
 hashCode → int
readonly, inherited
 The hash code for this object. [...]
 isFinite → bool
readonly, inherited
 True if the number is finite; otherwise, false. [...]
 isInfinite → bool
readonly, inherited
 True if the number is positive infinity or negative infinity; otherwise, false.
 isNaN → bool
readonly, inherited
 True if the number is the double NotaNumber value; otherwise, false.
 isNegative → bool
readonly, inherited
 True if the number is negative; otherwise, false. [...]
 runtimeType → Type
readonly, inherited
 A representation of the runtime type of the object.
Methods
 abs() → double
override
 Returns the absolute value of this double.
 ceil() → int
override
 Returns the least integer no smaller than
this
. [...]  ceilToDouble() → double
override
 Returns the least integer double value no smaller than
this
. [...]  floor() → int
override
 Returns the greatest integer no greater than
this
. [...]  floorToDouble() → double
override
 Returns the greatest integer double value no greater than
this
. [...]  remainder(num other) → double
override
 Returns the remainder of the truncating division of
this
by other
. [...]  round() → int
override
 Returns the integer closest to
this
. [...]  roundToDouble() → double
override
 Returns the integer double value closest to
this
. [...]  toString() → String
override
 Provide a representation of this double value. [...]
 truncate() → int
override
 Returns the integer obtained by discarding any fractional digits from
this
. [...]  truncateToDouble() → double
override
 Returns the integer double value obtained by discarding any fractional digits from
this
. [...]  clamp(num lowerLimit, num upperLimit) → num
inherited
 Returns this num clamped to be in the range
lowerLimit
upperLimit
. [...]  compareTo(num other) → int
inherited
 Compares this to
other
. [...]  noSuchMethod(Invocation invocation) → dynamic
inherited
 Invoked when a nonexistent method or property is accessed. [...]
 toDouble() → double
inherited
 Return this num as a double. [...]
 toInt() → int
inherited
 Truncates this num to an integer and returns the result as an int.
 toStringAsExponential([int fractionDigits ]) → String
inherited
 Returns an exponential stringrepresentation of
this
. [...]  toStringAsFixed(int fractionDigits) → String
inherited
 Returns a decimalpoint stringrepresentation of
this
. [...]  toStringAsPrecision(int precision) → String
inherited
 Converts
this
to a double and returns a string representation with exactly precision
significant digits. [...]
Operators
 operator %(num other) → double
override
 Euclidean modulo operator. [...]
 operator *(num other) → double
override
 Multiplication operator.
 operator +(num other) → double
override
 Addition operator.
 operator (num other) → double
override
 Subtraction operator.
 operator /(num other) → double
override
 Division operator.
 operator unary() → double
override
 Negate operator.
 operator ~/(num other) → int
override
 Truncating division operator. [...]
 operator <(num other) → bool
inherited
 Relational less than operator.
 operator <=(num other) → bool
inherited
 Relational less than or equal operator.
 operator ==(dynamic other) → bool
inherited
 The equality operator. [...]
 operator >(num other) → bool
inherited
 Relational greater than operator.
 operator >=(num other) → bool
inherited
 Relational greater than or equal operator.
Static Methods
 parse(String source, [ double onError(String source) ]) → double
override
 Parse
source
as an double literal and return its value. [...]  tryParse(String source) → double
override
 Parse
source
as an double literal and return its value. [...]
Constants
 infinity → const double

1.0 / 0.0
 maxFinite → const double

1.7976931348623157e+308
 minPositive → const double

5e324
 nan → const double

0.0 / 0.0
 negativeInfinity → const double

infinity