The Int32 equivalent of self

assert (-1).to_i32 == 0xFFFFFFFFi32
assert (1.9).to_i32 == 1i32

Property definitions

core :: fixed_ints $ Numeric :: to_i32
	# The Int32 equivalent of `self`
	#
	#     assert (-1).to_i32 == 0xFFFFFFFFi32
	#     assert (1.9).to_i32 == 1i32
	fun to_i32: Int32 do return self.to_i.to_i32
lib/core/fixed_ints.nit:63,2--67,45

core $ UInt32 :: to_i32
	redef fun to_i32 is intern
lib/core/fixed_ints.nit:642,2--27

core $ Int8 :: to_i32
	redef fun to_i32 is intern
lib/core/fixed_ints.nit:158,2--27

core $ Int16 :: to_i32
	redef fun to_i32 is intern
lib/core/fixed_ints.nit:279,2--27

core $ UInt16 :: to_i32
	redef fun to_i32 is intern
lib/core/fixed_ints.nit:400,2--27

core $ Int32 :: to_i32
	redef fun to_i32 do return self
lib/core/fixed_ints.nit:521,2--32

core :: fixed_ints $ Byte :: to_i32
	redef fun to_i32 is intern
lib/core/fixed_ints.nit:89,2--27

core :: fixed_ints $ Float :: to_i32
	redef fun to_i32 is intern
lib/core/fixed_ints.nit:81,2--27

core :: fixed_ints $ Int :: to_i32
	redef fun to_i32 is intern
lib/core/fixed_ints.nit:97,2--27