Type Double

All Supertypes:
OclAny, Real
All Subtypes:
Byte, Float, Int, Long, Short

Predefined type Double
extends Real

The Double type is the Real type with a 64 bits precision. Literals has the same structure as Real ones.


Operation Summary
 Double +
          This real.
 Double +(Double rhs)
          The value of the addition of this real and rhs.
 Double /(Double rhs)
          The value of this real divided by rhs.
 Boolean =(Double rhs)
          True if this real is equal to rhs.
 Boolean >=(Double rhs)
          True if this real is greater than or equal to rhs.
 Boolean >(Double rhs)
          True if this real is greater than rhs.
 Boolean <=(Double rhs)
          True if this real is less than or equal to rhs.
 Boolean <(Double rhs)
          True if this real is less than rhs.
 Double *(Double rhs)
          The value of the multiplication of this real and rhs.
 Boolean <>(Double rhs)
          True if this real is not equal to rhs.
 Double -
          The opposite of this real.
 Double -(Double rhs)
          The value of the substraction of rhs from this real.
 Double abs
          The absolute value of this real.
 Integer floor
          The largest integer which is less than or equal to this real.
 Double max(Double rhs)
          The maximum of this real and rhs.
 Double min(Double rhs)
          The minimum of this real and rhs.
 Integer round
          The integer which is closest to this real.
 String toString
          A representative character string of this real.
 
Operations inherited from type Real
+, /, =, >=, >, <=, <, *, <>, -, max, min, random
 
Operations inherited from type OclAny
=, <>, oclAsType, oclIsKindOf, oclIsTypeOf
 

Operations Detail

floor

 public Integer floor
The largest integer which is less than or equal to this real.
Overloads:
floor in type Real

round

 public Integer round
The integer which is closest to this real. When there are two such integers, the largest one.
Overloads:
round in type Real

=

 public Boolean =(Double rhs)
True if this real is equal to rhs.

<>

 public Boolean <>(Double rhs)
True if this real is not equal to rhs.

+

 public Double +
This real.
Overloads:
+ in type Real

-

 public Double -
The opposite of this real.
Overloads:
- in type Real

+

 public Double +(Double rhs)
The value of the addition of this real and rhs.

-

 public Double -(Double rhs)
The value of the substraction of rhs from this real.

*

 public Double *(Double rhs)
The value of the multiplication of this real and rhs.

/

 public Double /(Double rhs)
The value of this real divided by rhs.

abs

 public Double abs
The absolute value of this real.
Overloads:
abs in type Real

max

 public Double max(Double rhs)
The maximum of this real and rhs.

min

 public Double min(Double rhs)
The minimum of this real and rhs.

<

 public Boolean <(Double rhs)
True if this real is less than rhs.

>

 public Boolean >(Double rhs)
True if this real is greater than rhs.

<=

 public Boolean <=(Double rhs)
True if this real is less than or equal to rhs.

>=

 public Boolean >=(Double rhs)
True if this real is greater than or equal to rhs.

toString

 public String toString
A representative character string of this real.
Overloads:
toString in type Real


Copyright 1999-2002 ObjeXion Software SA. All rights reserved.