A compatibility layer for tangletext on numeric inputs