Database

[{amount:1.23},{amount:4.56}]

Query

db.collection.aggregate([{$group:{_id:null,totalAmount:{$sum:{"$toDecimal":"$amount"}}}}])

Result