# Precision and scale support for BigDecimals in ActiveRecord

**URL:** <https://www.ruby-forum.com/t/precision-and-scale-support-for-bigdecimals-in-activerecord/69971>\
**Category:** Rails\
**Created:** [September 26, 2006, 12:32am UTC](https://www.ruby-forum.com/t/precision-and-scale-support-for-bigdecimals-in-activerecord/69971 "2006-09-26T00:32:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 26, 2006, 12:32am UTC](https://www.ruby-forum.com/t/precision-and-scale-support-for-bigdecimals-in-activerecord/69971/1 "2006-09-26T00:32:09Z")

</div>

Hello all,  
We have been building a financial application on RoR, and let me say,  
it has been great. We are currently trying to ensure that decimal  
numbers are handled correctly in our application and thus we are very  
interested in this bug that speaks to the integration of BigDecimals  
into Rails via ActiveRecord:

[http://dev.rubyonrails.org/ticket/5454](http://dev.rubyonrails.org/ticket/5454)

We notice that it was closed, and the changes checked into the  
ActiveRecord SVN trunk well before the latest ActiveRecord release on  
August 8. Since we don’t know anything about the release process,  
could someone tell us when we might be able to get a stable version of  
ActiveRecord with these changes?

Thanks.

graham

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 26, 2006, 6:29am UTC](https://www.ruby-forum.com/t/precision-and-scale-support-for-bigdecimals-in-activerecord/69971/2 "2006-09-26T06:29:30Z")

</div>

Part of my application is financial based, and I avoided the problem  
by using the “dollars and cents” plugin. It treats your money columns  
as cents in integers, but in your model you have the “normal”  
attributes with a fractional cents part. Working well so far.

On 9/25/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> We notice that it was closed, and the changes checked into the
> 
> >

–  
When a man says he approves of something in principle, it means he  
hasn’t the slightest intention of putting it into practice. –  
Bismarck

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 26, 2006, 10:13am UTC](https://www.ruby-forum.com/t/precision-and-scale-support-for-bigdecimals-in-activerecord/69971/3 "2006-09-26T10:13:54Z")

</div>

On 9/26/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> We notice that it was closed, and the changes checked into the  
> ActiveRecord SVN trunk well before the latest ActiveRecord release on  
> August 8. Since we don’t know anything about the release process,  
> could someone tell us when we might be able to get a stable version of  
> ActiveRecord with these changes?

Just guessing here, but I assume this won’t be out until the next  
stable release of rails (1.2/2.0?). Any AR updates in the meantime are  
probably just maintenance/bugfix releases on the 1.1.6 branch.

As for when that happens, I have no idea.

Would love to see an official road map of kinds, if not containing  
dates, at least features/strategy/area of focus. Anyone aware of such  
a thing?

Isak

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 27, 2006, 11:52pm UTC](https://www.ruby-forum.com/t/precision-and-scale-support-for-bigdecimals-in-activerecord/69971/4 "2006-09-27T23:52:17Z")

</div>

Isak,  
Thanks for the info. I, too, would like to see a roadmap… but  
failing that, does anyone on the rails team have any idea when the  
included ActiveRecord will be revved?

graham
