+
Point of view
INTERNALS_HANDLER
expanded class REAL_EXTENDED
Summary
Overview
exported features
Conversions:
Conversions:
• rounded: REAL_EXTENDED
Round to nearest integer away from zero.
• floor: REAL_EXTENDED
Largest integral value no greater than Current.
• ceiling: REAL_EXTENDED
Smallest integral value no smaller than Current.
Object Printing:
Maths functions:
• sqrt: REAL_EXTENDED
Square root of Current.
• sin: REAL_EXTENDED
Sine of Current.
• cos: REAL_EXTENDED
Cosine of Current.
• tan: REAL_EXTENDED
Tangent of Current.
• asin: REAL_EXTENDED
Arc Sine of Current.
• acos: REAL_EXTENDED
Arc Cosine of Current.
• atan: REAL_EXTENDED
Arc Tangent of Current.
• atan2 (x: REAL_EXTENDED): REAL_EXTENDED
Arc Tangent of Current / x.
• sinh: REAL_EXTENDED
Hyperbolic Sine of Current.
• cosh: REAL_EXTENDED
Hyperbolic Cosine of Current.
• tanh: REAL_EXTENDED
Hyperbolic Tangent of Current.
• exp: REAL_EXTENDED
Exponential of Current.
• log: REAL_EXTENDED
Natural Logarithm of Current.
• log10: REAL_EXTENDED
Base-10 Logarithm of Current.
• pow (e: REAL_EXTENDED): REAL_EXTENDED
Current raised to the power of e (ANSI C pow).
Miscellaneous:
• in_range (lower: REAL_EXTENDED, upper: REAL_EXTENDED): BOOLEAN
Return True if Current is in range [lower..upper]
• compare (other: REAL_EXTENDED): INTEGER_32
If current object equal to other, 0 if smaller, -1; if greater, 1.
• three_way_comparison (other: REAL_EXTENDED): INTEGER_32
If current object equal to other, 0 if smaller, -1; if greater, 1.
• min (other: REAL_EXTENDED): REAL_EXTENDED
Minimum of Current and other.
• max (other: REAL_EXTENDED): REAL_EXTENDED
Maximum of Current and other.
force_to_real_32: REAL_32
force_to_real_64: REAL_64
force_to_integer_64: INTEGER_64
force_to_integer_32: INTEGER_32
force_to_integer_16: INTEGER_16
zero: REAL_32
constant attribute
Neutral element for "+" and "-".
one: REAL_32
constant attribute
Neutral element for "*" and "/".
infix "~=" (other: REAL_EXTENDED): BOOLEAN
effective function
Is Current near equal to other.
hash_code: INTEGER_32
effective function
The hash-code value of Current.
mantissa_bits: INTEGER_8
constant attribute
exponent_bits: INTEGER_8
constant attribute
Give the number of bits, corresponding to the exponent, in the binary representation of the real number.
is_equal (other: REAL_EXTENDED): BOOLEAN
effective function
Is other attached to an object considered equal to current object?
prefix "+": REAL_EXTENDED
effective function
Unary plus of Current.
prefix "-": REAL_EXTENDED
Unary minus of Current.
infix "+" (other: REAL_EXTENDED): REAL_EXTENDED
Sum with other (commutative).
infix "-" (other: REAL_EXTENDED): REAL_EXTENDED
Result of substracting other.
infix "*" (other: REAL_EXTENDED): REAL_EXTENDED
Product by other.
infix "/" (other: REAL_EXTENDED): REAL_EXTENDED
Division by other.
infix "^" (e: INTEGER_32): REAL_EXTENDED
infix "<" (other: REAL_EXTENDED): BOOLEAN
Is Current strictly less than other?
infix "<=" (other: REAL_EXTENDED): BOOLEAN
Is Current less than or equal other?
infix ">" (other: REAL_EXTENDED): BOOLEAN
Is Current strictly greater than other?
infix ">=" (other: REAL_EXTENDED): BOOLEAN
Is Current greater than or equal than other?
abs: REAL_EXTENDED
effective function
is_not_a_number: BOOLEAN
Also known as NaN in IEEE-754.
is_infinity: BOOLEAN
Is either plus or minus infinity?
is_zero: BOOLEAN
effective function
Is either -0.0 or +0.0 ?
is_subnormal: BOOLEAN
Is it too small to be represented in normalized format.
is_normal: BOOLEAN
The most general situation (see ensure).
divisible (other: REAL_EXTENDED): BOOLEAN
effective function
May Current be divided by other ?
rounded: REAL_EXTENDED
frozen
Round to nearest integer away from zero.
floor: REAL_EXTENDED
frozen
Largest integral value no greater than Current.
ceiling: REAL_EXTENDED
frozen
Smallest integral value no smaller than Current.
to_string: STRING
effective function
Convert Current into a new allocated STRING using 6 as the default number of digits for the fractional part.
to_string_format (f: INTEGER_32): STRING
effective function
Convert Current into a new allocated STRING using f digits for fractional part.
to_string_scientific (f: INTEGER_32): STRING
effective function
Convert Current into a new allocated STRING, using the scientific notation with f digits for the fractional part.
append_in (buffer: STRING)
effective procedure
Append the equivalent of to_string at the end of buffer.
append_in_format (str: STRING, f: INTEGER_32)
effective procedure
Append the equivalent of to_string_format at the end of buffer.
append_in_scientific (str: STRING, f: INTEGER_32)
effective procedure
Append the equivalent of to_string_scientific at the end of buffer.
out_in_tagged_out_memory
effective procedure
Append terse printable represention of current object in tagged_out_memory.
fill_tagged_out_memory
effective procedure
Append a viewable information in tagged_out_memory in order to affect the behavior of out, tagged_out, etc.
sqrt: REAL_EXTENDED
frozen
Square root of Current.
sin: REAL_EXTENDED
frozen
Sine of Current.
cos: REAL_EXTENDED
frozen
Cosine of Current.
tan: REAL_EXTENDED
frozen
Tangent of Current.
asin: REAL_EXTENDED
frozen
Arc Sine of Current.
acos: REAL_EXTENDED
frozen
Arc Cosine of Current.
atan: REAL_EXTENDED
frozen
Arc Tangent of Current.
atan2 (x: REAL_EXTENDED): REAL_EXTENDED
frozen
Arc Tangent of Current / x.
sinh: REAL_EXTENDED
frozen
Hyperbolic Sine of Current.
cosh: REAL_EXTENDED
frozen
Hyperbolic Cosine of Current.
tanh: REAL_EXTENDED
frozen
Hyperbolic Tangent of Current.
exp: REAL_EXTENDED
frozen
Exponential of Current.
log: REAL_EXTENDED
frozen
Natural Logarithm of Current.
log10: REAL_EXTENDED
frozen
Base-10 Logarithm of Current.
pow (e: REAL_EXTENDED): REAL_EXTENDED
frozen
Current raised to the power of e (ANSI C pow).
sign: INTEGER_8
effective function
Sign of Current (0 -1 or 1).
in_range (lower: REAL_EXTENDED, upper: REAL_EXTENDED): BOOLEAN
effective function
Return True if Current is in range [lower..upper]