Type Float

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

Predefined type Float
extends Double

The Float type is the Real type with a 32 bits precision. Literals have the same structure as Real ones.


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

round

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

=

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

<>

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

+

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

-

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

+

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

-

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

*

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

/

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

abs

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

max

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

min

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

<

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

>

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

<=

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

>=

 public Boolean >=(Float 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 Double


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