15 Oct
2017
15 Oct
'17
4:05 p.m.
El 15/10/2017 a las 17:59, Joaquin M López Muñoz escribió:
[...]
float balance=(float)std::max(original.back-remaining.back,0)/ (original.back+original.front-remaining.back-remaining.front); // denominator can't be 0
This should be float balance=(float)std::max(original.back-remaining.back,0)/ (std::max(original.back-remaining.back,0)+std::max(original.front-remaining.front,0); Joaquín M López Muñoz