hello all.
I was noticed that BigDecimal attribute in my db row changing every
reloading.
sum: #BigDecimal:4add7d0,‘0.9E0’,9(36)
ctrl+r
sum: #BigDecimal:639f200,‘0.9E0’,9(36)
ctrl+r
sum: #BigDecimal:594ceb0,‘0.9E0’,9(36)
Is it ok?
hello all.
I was noticed that BigDecimal attribute in my db row changing every
reloading.
sum: #BigDecimal:4add7d0,‘0.9E0’,9(36)
ctrl+r
sum: #BigDecimal:639f200,‘0.9E0’,9(36)
ctrl+r
sum: #BigDecimal:594ceb0,‘0.9E0’,9(36)
Is it ok?
The values you see changing, like “4add7d0” aren’t actually the decimal
value, they are the “address”. The actual decimal value is .9E0 so
between
each of those the value is the same. See
for more information. Try using “.to_s” to see just the decimal value.
On Mon, Jan 19, 2015 at 8:04 AM, Psycho S. [email protected]
wrote:
.
For more options, visit https://groups.google.com/d/optout.
–
Daniel Evans
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs