indexing
description: "Real values, single precision"
external_name: "System.Single"
assembly: "mscorlib"
library: "Free implementation of ELKS library"
copyright: "Copyright (c) 1986-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see forum.txt)"
date: "$Date: 2008-05-23 17:24:07 -0700 (Fri, 23 May 2008) $"
revision: "$Revision: 170 $"
frozen expanded class interface
REAL_32
create
default_create
ANY
make_from_reference (v: REAL_32_REF)
`Current'`v.item'
REAL_32_REF
require REAL_32_REF
v_not_void: v /= Void
ensure REAL_32_REF
item_set: item = v.item
convert
make_from_reference ({REAL_32_REF}),
make_from_reference: {REAL_64}
feature
generating_type: STRING_8
ANY
ensure ANY
generating_type_not_void: Result /= Void
generating_type_not_empty: not Result.is_empty
generator: STRING_8
ANY
ensure ANY
generator_not_void: Result /= Void
generator_not_empty: not Result.is_empty
hash_code: INTEGER_32
REAL_32_REF
ensure HASHABLE
good_hash_value: Result >= 0
item: REAL_32
REAL_32_REF
one: REAL_32
REAL_32_REF
ensure NUMERIC
result_exists: Result /= Void
sign: INTEGER_32
REAL_32_REF
ensure REAL_32_REF
three_way: Result = three_way_comparison (zero)
zero: REAL_32
REAL_32_REF
ensure NUMERIC
result_exists: Result /= Void
feature
frozen deep_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies (other /= Void and then some.same_type (other))
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
frozen is_deep_equal (other: REAL_32): BOOLEAN
`Current'`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
shallow_implies_deep: standard_is_equal (other) implies Result
same_type: Result implies same_type (other)
symmetric: Result implies other.is_deep_equal (Current)
is_equal (other: REAL_32): BOOLEAN
`other'
REAL_32_REF
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
ensure then COMPARABLE
trichotomy: Result = (not (Current < other) and not (other < Current))
max (other: REAL_32): REAL_32
`other'
COMPARABLE
require COMPARABLE
other_exists: other /= Void
ensure COMPARABLE
current_if_not_smaller: Current >= other implies Result = Current
other_if_smaller: Current < other implies Result = other
min (other: REAL_32): REAL_32
`other'
COMPARABLE
require COMPARABLE
other_exists: other /= Void
ensure COMPARABLE
current_if_not_greater: Current <= other implies Result = Current
other_if_greater: Current > other implies Result = other
frozen standard_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: REAL_32): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
three_way_comparison (other: REAL_32): INTEGER_32
`other'
COMPARABLE
require COMPARABLE
other_exists: other /= Void
ensure COMPARABLE
equal_zero: (Result = 0) = is_equal (other)
smaller_negative: (Result = -1) = (Current < other)
greater_positive: (Result = 1) = (Current > other)
infix "<" (other: REAL_32): BOOLEAN
`other'
require PART_COMPARABLE
other_exists: other /= Void
ensure then COMPARABLE
asymmetric: Result implies not (other < Current)
infix "<=" (other: REAL_32): BOOLEAN
`other'
COMPARABLE
require PART_COMPARABLE
other_exists: other /= Void
ensure then COMPARABLE
definition: Result = ((Current < other) or is_equal (other))
infix ">" (other: REAL_32): BOOLEAN
`other'
COMPARABLE
require PART_COMPARABLE
other_exists: other /= Void
ensure then COMPARABLE
definition: Result = (other < Current)
infix ">=" (other: REAL_32): BOOLEAN
`other'
COMPARABLE
require PART_COMPARABLE
other_exists: other /= Void
ensure then COMPARABLE
definition: Result = (other <= Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
divisible (other: REAL_32_REF): BOOLEAN
`other'
REAL_32_REF
require NUMERIC
other_exists: other /= Void
ensure then REAL_32_REF
ref_not_exact_zero: Result implies (other.item /= 0.0)
exponentiable (other: NUMERIC): BOOLEAN
`other'
REAL_32_REF
require NUMERIC
other_exists: other /= Void
ensure then REAL_32_REF
safe_values: ((other.conforms_to (0) and item /= 0.0) or (other.conforms_to (0.0) and item > 0.0)) implies Result
is_hashable: BOOLEAN
REAL_32_REF
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
feature
set_item (r: REAL_32)
`r'item
REAL_32_REF
feature
ceiling: INTEGER_32
REAL_32_REF
ensure REAL_32_REF
result_no_smaller: Result >= item
close_enough: Result - item < item.one
ceiling_real_32: REAL_32
ensure REAL_32_REF
result_no_smaller: Result >= item
close_enough: Result - item < item.one
floor: INTEGER_32
REAL_32_REF
ensure REAL_32_REF
result_no_greater: Result <= item
close_enough: item - Result < Result.one
floor_real_32: REAL_32
ensure REAL_32_REF
result_no_greater: Result <= item
close_enough: item - Result < Result.one
rounded: INTEGER_32
REAL_32_REF
ensure REAL_32_REF
definition: Result = sign * ((abs + 0.5).floor)
rounded_real_32: REAL_32
REAL_32_REF
ensure REAL_32_REF
definition: Result = sign * ((abs + 0.5).floor_real_32)
to_double: REAL_64
to_reference: REAL_32_REF
REAL_32_REF
ensure REAL_32_REF
to_reference_not_void: Result /= Void
truncated_to_integer: INTEGER_32
truncated_to_integer_64: INTEGER_64
feature
copy (other: REAL_32)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: REAL_32)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: REAL_32
ANY
ensure ANY
deep_twin_not_void: Result /= Void
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: REAL_32)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: REAL_32
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: REAL_32
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
abs: REAL_32
REAL_32_REF
ensure REAL_32_REF
non_negative: Result >= 0.0
same_absolute_value: (Result = item) or (Result = - item)
frozen default: REAL_32
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
infix "*" (other: REAL_32): REAL_32
`other'
require NUMERIC
other_exists: other /= Void
ensure NUMERIC
result_exists: Result /= Void
prefix "+": REAL_32
require NUMERIC
True
ensure NUMERIC
result_exists: Result /= Void
infix "+" (other: REAL_32): REAL_32
`other'
require NUMERIC
other_exists: other /= Void
ensure NUMERIC
result_exists: Result /= Void
commutative: equal (Result, other + Current)
prefix "-": REAL_32
require NUMERIC
True
ensure NUMERIC
result_exists: Result /= Void
infix "-" (other: REAL_32): REAL_32
`other'
require NUMERIC
other_exists: other /= Void
ensure NUMERIC
result_exists: Result /= Void
infix "/" (other: REAL_32): REAL_32
`other'
require NUMERIC
other_exists: other /= Void
good_divisor: divisible (other)
ensure NUMERIC
result_exists: Result /= Void
infix "^" (other: REAL_64): REAL_64
`other'
feature
io: STD_FILES
ANY
ensure ANY
io_not_void: Result /= Void
out: STRING_8
require DEBUG_OUTPUT
True
require ANY
True
ensure DEBUG_OUTPUT
result_not_void: Result /= Void
ensure ANY
out_not_void: Result /= Void
print (some: ?ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANY
ensure ANY
tagged_out_not_void: Result /= Void
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
ensure ANY
operating_environment_not_void: Result /= Void
invariant
REAL_32_REF
sign_times_abs: sign * abs = item
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
COMPARABLE
irreflexive_comparison: not (Current < Current)
end REAL_32