Top "Arithmetic-expressions" questions

An arithmetic expression is an expression that results in a numeric value.

How do I use floating-point division in bash?

I am trying to divide two image widths in a Bash script, but bash gives me 0 as the result: RESULT=$(($…

bash floating-point arithmetic-expressions
How to use mod operator in bash?

I'm trying a line like this: for i in {1..600}; do wget http://example.com/search/link $i % 5; done; What I'm …

bash modulo arithmetic-expressions
Is there an exponent operator in C#?

For example, does an operator exist to handle this? float Result, Number1, Number2; Number1 = 2; Number2 = 2; Result = Number1 (operator) Number2; In …

c# operators arithmetic-expressions exponent
Python error in basic subtraction?

Possible Duplicate: Python rounding error with float numbers python maths is wrong I can't get Python to correctly do the …

python subtraction arithmetic-expressions
C++ Implicit Conversion (Signed + Unsigned)

I understand that, regarding implicit conversions, if we have an unsigned type operand and a signed type operand, and the …

c++ type-conversion unsigned-integer arithmetic-expressions
Bash script checking cpu usage of specific process

First off, I'm new to this. I have some experience with windows scripting and apple script but not much with …

bash integer arithmetic-expressions
Ambiguous reference to member '=='

That must be a basic mistake, but I can't see what is wrong in this code: .... object is some NSManagedObject .... …

ios swift operators arithmetic-expressions
convert scientific notation to decimal in bash

I would like to convert a number that is stored in scientific notation into a floating point decimal, so I …

bash decimal notation arithmetic-expressions
Is it possible to simplify (x == 0 || x == 1) into a single operation?

So I was trying to write the nth number in the Fibonacci sequence in as compact a function as possible: …

c# algorithm optimization arithmetic-expressions
Modulus division when first number is smaller than second number

I apologize if this is a simple question but I'm having trouble grasping the concept of modulus division when the …

java modulo integer-division arithmetic-expressions