0
0 Comments

db.col.find({state:”success”},{_id:0,amount:1}).forEach(function(x){printjson(x);});
{ “amount” : “10.00” }
{ “amount” : “10.00” }
{ “amount” : “6” }

db.col.find({state:”success”},{_id:0,amount:1}).forEach(function(x){printjson(parseFloat(x));});

NaN
NaN
NaN