标签: ruby-on-rails
我已设置:precision => 8,:scale => 2在十进制的迁移,但当我输入1923.423453它仍然是1923.4。它应该是1923.42 ......对吗?
t.decimal :value , :precision => 8, :scale => 2 , :default => 0
答案 0 :(得分:2)