Type Real

All Supertypes:
OclAny
All Subtypes:
Byte, Double, Float, Int, Integer, Long, Short

Predefined type Real
extends OclAny

The Real type represents the mathematical concept of real. Note that Integer is a subtype of Real, so for each parameter of type Real, you can use an integer as the actual parameter. A real literal corresponds to: real::= (digit)+ ('.' (digit)+ (exp)? | exp) exp ::= ('e'|'E') ('+'|'-')? ('0'..'9')+ digit ::= '0'..'9'


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

Operations Detail

=

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

<>

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

+

 public Real +
This real.

-

 public Real -
The opposite of this real.

+

 public Real +(Real rhs)
The vlue of the addition of this real and rhs.

-

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

*

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

/

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

abs

 public Real abs
The absolute value of this real.

floor

 public Integer floor
The largest integer which is less than or equal to this real.

round

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

max

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

min

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

<

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

>

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

<=

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

>=

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

random

 public Real random
Static; a random generated real, between 0 and 1.

toString

 public String toString
A representative character string of this real.


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