On this page
double abstract class
A double-precision floating point number.
Representation of Dart doubles containing double specific constants and operations and specializations of operations inherited from num. Dart doubles are 64-bit floating-point numbers as specified in the IEEE 754 standard.
The double type is contagious. Operations on doubles return double results.
It is a compile-time error for a class to attempt to extend or implement double.
Constants
- INFINITY → double
 - 
    
1.0 / 0.0 - MAX_FINITE → double
 - 
    
1.7976931348623157e+308 - MIN_POSITIVE → double
 - 
    
5e-324 - NAN → double
 - 
    
0.0 / 0.0 - NEGATIVE_INFINITY → double
 - 
    
-INFINITY 
Static Methods
- parse(
String source, [ double onError(String source) ]) → double  - 
    
Parse
sourceas an double literal and return its value. 
Constructors
- double()
 
Properties
- sign → double
    read-only
 - 
    
Returns the sign of the double's numerical value.
 - hashCode → int
    read-only, inherited
 - 
    
The hash code for this object.
 - isFinite → bool
    read-only, inherited
 - 
    
True if the number is finite; otherwise, false.
 - isInfinite → bool
    read-only, inherited
 - 
    
True if the number is positive infinity or negative infinity; otherwise, false.
 - isNaN → bool
    read-only, inherited
 - 
    
True if the number is the double Not-a-Number value; otherwise, false.
 - isNegative → bool
    read-only, inherited
 - 
    
True if the number is negative; otherwise, false.
 - runtimeType → Type
    read-only, inherited
 - 
    
A representation of the runtime type of the object.
 
Operators
- operator %(
num other) → double  - 
    
Euclidean modulo operator.
 - operator *(
num other) → double  - 
    
Multiplication operator.
 - operator +(
num other) → double  - 
    
Addition operator.
 - operator -(
num other) → double  - 
    
Subtraction operator.
 - operator /(
num other) → double  - 
    
Division operator.
 - operator unary-(
) → double  - 
    
Negate operator.
 - operator ~/(
num other) → int  - 
    
Truncating division operator.
 - operator <(
num other) → bool inherited - 
    
Relational less than operator.
 - operator <=(
num other) → bool inherited - 
    
Relational less than or equal operator.
 - operator ==(
Object other) → bool inherited - 
    
Test whether this value is numerically equal to
other. - operator >(
num other) → bool inherited - 
    
Relational greater than operator.
 - operator >=(
num other) → bool inherited - 
    
Relational greater than or equal operator.
 
Methods
- abs(
) → double  - 
    
Returns the absolute value of this double.
 - ceil(
) → int  - 
    
Returns the least integer no smaller than
this. - ceilToDouble(
) → double  - 
    
Returns the least integer double value no smaller than
this. - floor(
) → int  - 
    
Returns the greatest integer no greater than
this. - floorToDouble(
) → double  - 
    
Returns the greatest integer double value no greater than
this. - remainder(
num other) → double  - 
    
Returns the remainder of the truncating division of
thisbyother. - round(
) → int  - 
    
Returns the integer closest to
this. - roundToDouble(
) → double  - 
    
Returns the integer double value closest to
this. - toString(
) → String  - 
    
Provide a representation of this double value.
 - truncate(
) → int  - 
    
Returns the integer obtained by discarding any fractional digits from
this. - truncateToDouble(
) → double  - 
    
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 non-existent method or property is accessed.
 - toDouble(
) → double inherited - toInt(
) → int inherited - 
    
Truncates this num to an integer and returns the result as an int.
 - toStringAsExponential(
[int fractionDigits ]) → String inherited - 
    
Returns an exponential string-representation of
this. - toStringAsFixed(
int fractionDigits) → String inherited - 
    
Returns a decimal-point string-representation of
this. - toStringAsPrecision(
int precision) → String inherited - 
    
Converts
thisto a double and returns a string representation with exactlyprecisionsignificant digits. 
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
 https://api.dartlang.org/stable/1.24.3/dart-core/double-class.html