mercredi 15 février 2017

return numeric value in proper format and not in string

I am getting active record set from a table in model then storing the result in an instance variable in controller and simply returning all columns from json.

One of the columns data type in database is numeric(5,2). When i test it, it returns that column value in strings e.g "155"

any idea what am i missing?

Thanks

Aucun commentaire:

Enregistrer un commentaire