The byte equivalent of self

assert (-1).to_b == 0xFF.to_b
assert (1.9).to_b == 1.to_b

Property definitions

core $ Numeric :: to_b
	# The byte equivalent of `self`
	#
	#     assert (-1).to_b == 0xFF.to_b
	#     assert (1.9).to_b == 1.to_b
	fun to_b: Byte is abstract
lib/core/kernel.nit:467,2--471,27

core $ UInt32 :: to_b
	redef fun to_b is intern
lib/core/fixed_ints.nit:638,2--25

core $ Int8 :: to_b
	redef fun to_b is intern
lib/core/fixed_ints.nit:154,2--25

core $ Int16 :: to_b
	redef fun to_b is intern
lib/core/fixed_ints.nit:275,2--25

core $ UInt16 :: to_b
	redef fun to_b is intern
lib/core/fixed_ints.nit:396,2--25

core $ Int32 :: to_b
	redef fun to_b is intern
lib/core/fixed_ints.nit:517,2--25

core $ Byte :: to_b
	redef fun to_b do return self
lib/core/kernel.nit:656,2--30

core $ Float :: to_b
	redef fun to_b is intern
lib/core/kernel.nit:542,2--25

core $ Int :: to_b
	redef fun to_b is intern
lib/core/kernel.nit:753,2--25