Automatic generation produced by ISE Eiffel
note description: "Some useful facilities on objects of basic types" library: "Free implementation of ELKS library" status: "See notice at end of class." legal: "See notice at end of class." date: "$Date: 2012-05-23 21:13:10 -0700 (Wed, 23 May 2012) $" revision: "$Revision: 91981 $" class interface BASIC_ROUTINES create default_create feature -- Conversion charconv (i: INTEGER_32): CHARACTER_8 -- Character associated with integer value `i' feature -- Basic operations abs (n: INTEGER_32): INTEGER_32 -- Absolute value of `n' ensure non_negative_result: Result >= 0 sign (n: INTEGER_32): INTEGER_32 -- Sign of `n': -- -1 if `n' < 0 -- 0 if `n' = 0 -- +1 if `n' > 0 ensure correct_negative: (n < 0) = (Result = -1) correct_zero: (n = 0) = (Result = 0) correct_positive: (n > 0) = (Result = 1) rsign (r: REAL_32): INTEGER_32 -- Sign of `r': -- -1 if `r' < 0 -- 0 if `r' = 0 -- +1 if `r' > 0 ensure correct_negative: (r < 0.to_real) = (Result = -1) correct_zero: (r = 0.to_real) = (Result = 0) correct_positive: (r > 0.to_real) = (Result = 1) bottom_int_div (n1, n2: INTEGER_32): INTEGER_32 -- Greatest lower bound of the integer division of `n1' by `n2' up_int_div (n1, n2: INTEGER_32): INTEGER_32 -- Least upper bound of the integer division -- of `n1' by `n2' note copyright: "Copyright (c) 1984-2012, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class BASIC_ROUTINES -- Generated by ISE Eiffel --
For more details: www.eiffel.com