The UInt32 equivalent of self

assert (-1).to_u32 == 0xFFFFFFFFu32
assert (1.9).to_u32 == 1u32

Property definitions

core :: fixed_ints $ Numeric :: to_u32
	# The UInt32 equivalent of `self`
	#
	#     assert (-1).to_u32 == 0xFFFFFFFFu32
	#     assert (1.9).to_u32 == 1u32
	fun to_u32: UInt32 do return self.to_i.to_u32
lib/core/fixed_ints.nit:69,2--73,46

core $ UInt32 :: to_u32
	redef fun to_u32 do return self
lib/core/fixed_ints.nit:643,2--32

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

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

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

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

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

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

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