Value extraction from a decimal literal plus some tests.