Search the Community
Showing results for tags 'subtraction'.
-
I need make a calculation which allow know difference between two numbers. I can subtract the smallest of the larger, but this calculation is very limited, implies if a number is negative and the other positive. I want to know another way to do this. It is possible to do this calculation in JavaScript through the: modulo; function; (Others); Mainly: Another important thing which I want, is to calculate percentage difference through two differents numbers. To know the value resultant. I want to know all the possible ways to do this. Because I came across in an embarrassing
- 8 replies
-
- Numericadifference
- between
-
(and 6 more)
Tagged with:
-
ProblemIt should return 39201661 but instead it returns 39201664. <?php $var = 76561197999467389;// will be dynamic $sum = $var - 76561197960265728;// will always be subtracted by the same value echo $sum;// returns 39201664?> What I've triedI've looked around & saw a function called bcsub() & tried to use that one but it returned 0.While looking around for an answer I also found out it might be caused by the storage of the numbers before subtraction. What I would like to knowIf it really is a storage problem, is there a workaround to get the right value anyway?If it isn't wh
- 6 replies
-
- 1
-
-
- subtract
- subtracting
-
(and 1 more)
Tagged with: