Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようなドキュメントがあります。
{ price = 140.23563 }
価格を 100 倍するにはどうすればよいですか?
今後のリリース ノートの時点でMongo 2.6、新しい $mul 演算子を使用できるようになります。次の構文を使用して、フィールドの値に数値を掛けます。
Mongo 2.6
{ field: { $mul: <number> } }
2.6PSは現在リリースされていませんが、すぐにリリースされることを覚えておいてください。2.5.x今すぐ代わりに実験的を使用できます。
2.6
2.5.x