Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
4 answers
116 views

I want to subtract two list with the same length such it returns a list with same length, for example, a = [1,2,3,4] b = [5,4,3,7] a-b=[1-5,2-4,3-3,4-7]=[-4,-2,0,-3] is there any method?
3 votes
2 answers
184 views

I’m trying to compute the difference between two square roots in JS. function deltaSqrt(x) { return Math.sqrt(x + 1) - Math.sqrt(x); } console.log(deltaSqrt(1e6)); // 0.0004999998750463419 ...
1 vote
1 answer
25 views

I need to calculate a simple subtraction of one cell value "Yearly Difference" to another cell value "Amount" based on the month. The issue is the last cell value will be in a ...
Ray Wing's user avatar
1 vote
1 answer
66 views

I have a pivot table with a numerical column. I want to subtract number '1' from 'count of serial number' column. I tried to use Fields, Items, sets and entered formula as = ='Number' - 1. But this ...
1 vote
3 answers
135 views

The subtracting 36716.09 from 28961.49 (36716.09 - 28961.49, ‘.’dot is separator represents minutes: 9 minutes and 49 respectively) yields 7754.60 Which accounts for 7755 hours. However, the correct ...
5 votes
3 answers
262 views

I know that if I need to substract one 32-bit number from another, as a result vairable I should use 64-bit type. E.g. uint32_t a = 1, b = 3123456789; int diff = a - b; is wrong because diff cannot ...
0 votes
2 answers
65 views

I have a table that contains product totals as well as a pre-calculated grand total Type Agent Rev Product 1 Agent 1 100 Product 2 Agent 1 90 Product 3 Agent 1 200 GrandTotal Agent 1 390 I can SUM ...
1 vote
1 answer
65 views

I am getting an operand error in pycharm, and I don't understand why because in pycharm instant feedback sense, the code is correct. What is your name? How old are you? Traceback (most recent call ...
0 votes
2 answers
72 views

How is it possible to get given output with code below? #include <iostream> #include <vector> #include <future> #include <algorithm> #include <cmath> using namespace std;...
0 votes
0 answers
85 views

I have been doing some scientific computing working lot with very small and very big doubles with values in range between 1e-50 and 1e50. Nevertheless, the values never reach double limits, i.e. no ...
0 votes
1 answer
118 views

There are actually two ways given to add or subtract significant figures in different books .In books like concepts of Physics by HC Verma it is written that round of the numbers given first and then ...
0 votes
1 answer
42 views

How to get a train data set with 7 rows from a main data set of 10 rows after creating a test data set with 3 random rows, I need to subtract the test data set from the main data set. However, I need ...
0 votes
2 answers
101 views

I want to subract a number inside of a list consecutively. Let's say I have a list name A. A = [6, 7, 9, 5] Subtract 6 - 7, so it's -1. Then, subtract -1 - 9, it's -10. Then, subtract -10 - 5, it's -...
aki's user avatar
  • 49
-1 votes
3 answers
73 views

If I have a list of values like this: a=[5,4,3,2,1] How would I then go about subtracting a value from the one before it and storing it in a new list? In this example, the new list would look like: ...
-1 votes
1 answer
176 views

Found a bug in my code and noticed the following, when subtracting 2 numbers like unsigned int a, b (with b > a) signed long result = a - b The result is always positive, even though b is larger. I ...
user avatar

15 30 50 per page
1
2 3 4 5
...
100

AltStyle によって変換されたページ (->オリジナル) /