The Int16 equivalent of self

assert (-1).to_i16 == 0xFFFFi16
assert (1.9).to_i16 == 1i16

Property definitions

core :: fixed_ints $ Numeric :: to_i16
	# The Int16 equivalent of `self`
	#
	#     assert (-1).to_i16 == 0xFFFFi16
	#     assert (1.9).to_i16 == 1i16
	fun to_i16: Int16 do return self.to_i.to_i16
lib/core/fixed_ints.nit:51,2--55,45

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

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

core $ Int16 :: to_i16
	redef fun to_i16 do return self
lib/core/fixed_ints.nit:277,2--32

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

core $ Int32 :: to_i16
	redef fun to_i16 is intern
lib/core/fixed_ints.nit:519,2--27

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

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

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