Decimal to base script