How to leave a numeric variable as an attribute, that is, instead of saving it as text, it is saved as a number

como dejar como atributo una variable numérica, o sea que en vez que se guarde como texto, se guarde como número

Maybe the post discussed previously should answer your query: