|
|||||
Previous Next |
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 |
public Integer floor
floor
in type Double
public Integer round
round
in type Double
public Boolean =(Float rhs)
public Boolean <>(Float rhs)
public Float +
+
in type Double
public Float -
-
in type Double
public Float +(Float rhs)
public Float -(Float rhs)
public Float *(Float rhs)
public Float /(Float rhs)
public Float abs
abs
in type Double
public Float max(Float rhs)
public Float min(Float rhs)
public Boolean <(Float rhs)
public Boolean >(Float rhs)
public Boolean <=(Float rhs)
public Boolean >=(Float rhs)
public String toString
toString
in type Double
|
|||||
Previous Next |