return displayable int in hexadecimal

assert 1.to_hex  == "1"
assert (-255).to_hex  == "-ff"

Property definitions

core :: abstract_text $ Int :: to_hex
	# return displayable int in hexadecimal
	#
	# ~~~
	# assert 1.to_hex  == "1"
	# assert (-255).to_hex  == "-ff"
	# ~~~
	fun to_hex: String do return to_base(16)
lib/core/text/abstract_text.nit:2017,2--2023,41