S
Stefan L
Hi NG,
I have the following problem:
Is there a way to use exponents in C#-code without converting to a
double and then use System.Math?
I have to convert VB-Code to C# and in VB its easy because you write:
y = 5 ^ x
meaning "Set y to 5 raised to the power of x"
I didn't find a similar operator for C#, because "^" is a XOR-Operator.
Am I blind or is there just no "easy" way to use exponents?
TIA,
Stefan
I have the following problem:
Is there a way to use exponents in C#-code without converting to a
double and then use System.Math?
I have to convert VB-Code to C# and in VB its easy because you write:
y = 5 ^ x
meaning "Set y to 5 raised to the power of x"
I didn't find a similar operator for C#, because "^" is a XOR-Operator.
Am I blind or is there just no "easy" way to use exponents?
TIA,
Stefan