Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> a = Account.new(:name => "Test Account", :initialBalance => 9.999)
- => #<Account id: nil, name: "Test Account", created_at: nil, updated_at: nil, initialBalance: #<BigDecimal:b6f889a8,'0.9999E1',8(8)>>
- >> a.initialBalance.to_s
- => "9.999"
- >> a.save
- => true
- >> a.initialBalance.to_s
- => "9.999"
- >> a.initialBalance = 12345678901234567890
- => 12345678901234567890
- >> a.initialBalance.to_s
- => "12345678901234567890.0"
Add Comment
Please, Sign In to add comment