If self contains only digits '0' .. '9', return the corresponding integer.

assert "108".to_dec == 108

Property definitions

core $ Text :: to_dec
	# If `self` contains only digits '0' .. '9', return the corresponding integer.
	#
	# ~~~
	# assert "108".to_dec == 108
	# ~~~
	fun to_dec: Int do return a_to(10)
lib/core/text/abstract_text.nit:306,2--311,35