# Float/decimal with dot or comma

**URL:** <https://www.ruby-forum.com/t/float-decimal-with-dot-or-comma/66830>\
**Category:** Rails\
**Created:** [August 29, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/float-decimal-with-dot-or-comma/66830 "2006-08-29T17:41:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Christophe\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6de8d8/32.png) [@Jean-Christophe\_M](https://www.ruby-forum.com/u/Jean-Christophe_M)\
**Post date:** [August 29, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/float-decimal-with-dot-or-comma/66830/1 "2006-08-29T17:41:40Z")

</div>

Hi,

I’m facing a really strange behaviour with rails 1.1.6.

A model has a field declared as :float in schema.rb, as numeric in  
postgres 8.1.  
On save/update, rails makes the decimal point become a comma on the  
prod server only, hence making a sql error.  
This error was not there three weeks ago, i.e. when my prod server was  
in 1.1.4. Maybe something else changed, I cannot be sure it’s linked to  
1.1.4 → 1.1.6 migration. (Yes I know, I should have more tests. Anyway  
I had to move to 1.1.6, isn’t it ? 😉

Here in dev, same version, same code (svn revision), it doesn’t happen.  
Ideas ?

Dev box: mac os x.3.9, Prod box : debian sarge i686.

## Jean-Christophe M.

> **[Édition et distribution de livres sur la musique, de partitions et de revues...](https://symetrie.com/fr)**
>
> Présentation des publications de Symétrie en musique, musicologie et médecine de la voix.

Better Nested Set for rails:  
[http://opensource.symetrie.com/trac/better\_nested\_set](http://opensource.symetrie.com/trac/better_nested_set)

---

<div class="post-metadata">

**Author:** ![Jean-Christophe\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6de8d8/32.png) [@Jean-Christophe\_M](https://www.ruby-forum.com/u/Jean-Christophe_M)\
**Post date:** [September 6, 2006, 10:29pm UTC](https://www.ruby-forum.com/t/float-decimal-with-dot-or-comma/66830/2 "2006-09-06T22:29:03Z")

</div>

Anyone know what the status of the FrontBase adaptor is? I’m looking  
at ActiveRecord 1.14.2 and I see a lot of adaptors (including  
openbase, db2, and firebird) but not frontbase, which I thought was  
“baked-in” at this point.

Cheers,  
russ
