Найти и сохранить процент двух столбцов в mongodb ⇐ Php
-
Anonymous
Найти и сохранить процент двух столбцов в mongodb
I have $a and $b colons in mongodb. I want to do the following in $c column with PHP.
$number = $a/$b * (100-100);
That is, I want to find the percentage change and save it in column $c.
can you help me?
{ "a": 0.16, "b": 0.15, "c: ? },
Источник: https://stackoverflow.com/questions/780 ... in-mongodb
I have $a and $b colons in mongodb. I want to do the following in $c column with PHP.
$number = $a/$b * (100-100);
That is, I want to find the percentage change and save it in column $c.
can you help me?
{ "a": 0.16, "b": 0.15, "c: ? },
Источник: https://stackoverflow.com/questions/780 ... in-mongodb
Мобильная версия