The UInt16 equivalent of self

assert (-1).to_u16 == 0xFFFFu16
assert (1.9).to_u16 == 1u16

Property definitions

core :: fixed_ints $ Numeric :: to_u16
	# The UInt16 equivalent of `self`
	#
	#     assert (-1).to_u16 == 0xFFFFu16
	#     assert (1.9).to_u16 == 1u16
	fun to_u16: UInt16 do return self.to_i.to_u16
lib/core/fixed_ints.nit:57,2--61,46

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

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

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

core $ UInt16 :: to_u16
	redef fun to_u16 do return self
lib/core/fixed_ints.nit:399,2--32

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

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

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

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