Why do my decimal value rows are values such as #> instead of just a regular decimal number?
I have a cost column and I get weird values. Is that ok? If so why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s just how Ruby prints out BigDecimal objects by default. Not sure why they chose such an ugly format, but hey – maybe some of the extra information can be useful.
Anyway, you should still be able to use them as you expect – it’s just a bit of display weirdness. If you want to print a BigDecimal in a more normal format, call
to_son it first, or useputs, which callsto_sfor you.Hope that helps!