python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
syntax error near unexpected token `(' with "let" command in bash script
I have a bash script as following that generates the accompanying error:
# cat ./a.sh
#!/bin/bash
let C=1+(2)
echo $C
#
# ./a.sh
./a.sh: line 2: syntax error near unexpected token `('
./a.sh: line 2: ...
Chuck Newman
Votes: 0
Answers: 1
Is it possible to find a few common multiples of a list of numbers, without them having to be integers?
I don't even know if something like this is possible, but:
Let us say we have three numbers:
A = 6
B = 7.5
C = 24
I would like to find a few evenly spaced common multiples of these numbers between 0 ...
Andrew.M
Votes: 0
Answers: 1
Taking negative of the minimum negative number, C/C++
I have ran into a peculiar situation:
void f(signed int8 Var1) {
if ( Var1 < 0 )
Var1 = -Var1;
/// at this point I'm expecting Var1 to be >= 0
/// and it works, unless we ca...
Kostja
Votes: 0
Answers: 1
How do you format a query to do arithmetic between the results of two MySQL select statements?
We know how to do simple MySQL arithmetic - e.g.:
mysql> select 10-7 as 'result';
+--------+
| result |
+--------+
| 3 |
+--------+
But if "10" and "7" are themselves resu...

Steven J. Garner
Votes: 0
Answers: 2