The Int8 equivalent of self

assert (-1).to_i8 == 0xFFFFi8
assert (1.9).to_i8 == 1i8

Property definitions

core :: fixed_ints $ Numeric :: to_i8
	# The Int8 equivalent of `self`
	#
	#     assert (-1).to_i8 == 0xFFFFi8
	#     assert (1.9).to_i8 == 1i8
	fun to_i8: Int8 do return self.to_i.to_i8
lib/core/fixed_ints.nit:45,2--49,42

core $ UInt32 :: to_i8
	redef fun to_i8 is intern
lib/core/fixed_ints.nit:639,2--26

core $ Int8 :: to_i8
	redef fun to_i8 do return self
lib/core/fixed_ints.nit:155,2--31

core $ Int16 :: to_i8
	redef fun to_i8 is intern
lib/core/fixed_ints.nit:276,2--26

core $ UInt16 :: to_i8
	redef fun to_i8 is intern
lib/core/fixed_ints.nit:397,2--26

core $ Int32 :: to_i8
	redef fun to_i8 is intern
lib/core/fixed_ints.nit:518,2--26

core :: fixed_ints $ Byte :: to_i8
	redef fun to_i8 is intern
lib/core/fixed_ints.nit:86,2--26

core :: fixed_ints $ Float :: to_i8
	redef fun to_i8 is intern
lib/core/fixed_ints.nit:78,2--26

core :: fixed_ints $ Int :: to_i8
	redef fun to_i8 is intern
lib/core/fixed_ints.nit:94,2--26