# Decimal Numbers presentation

**URL:** <https://www.ruby-forum.com/t/decimal-numbers-presentation/110415>\
**Category:** Rails\
**Created:** [July 26, 2007, 4:09am UTC](https://www.ruby-forum.com/t/decimal-numbers-presentation/110415 "2007-07-26T04:09:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo\_sdl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecd19e/32.png) [@ricardo\_sdl](https://www.ruby-forum.com/u/ricardo_sdl)\
**Post date:** [July 26, 2007, 4:09am UTC](https://www.ruby-forum.com/t/decimal-numbers-presentation/110415/1 "2007-07-26T04:09:43Z")

</div>

Hello guys! I´m using Ruby On Rails with Sql Server DataBase. I have a  
decimal field in a table that looks like this:  
Length:5 Precision:8 Scale:2  
But, in the browser view the field appears truncated. The number 0.70  
is truncated to 0.0. How can I resolve this?  
Thanks!

---

<div class="post-metadata">

**Author:** ![ricardo\_sdl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecd19e/32.png) [@ricardo\_sdl](https://www.ruby-forum.com/u/ricardo_sdl)\
**Post date:** [August 7, 2007, 5:32am UTC](https://www.ruby-forum.com/t/decimal-numbers-presentation/110415/2 "2007-08-07T05:32:53Z")

</div>

Connecting via ODBC the numbers are showed correctly!  
Do I need the DBI module to connect via odbc to SQL Server Data Base?
