March 2018
Beginner to intermediate
458 pages
10h 34m
English
Arithmetic operators supported by the F# language are outlined in the following table. Assuming variable X = 10 and variable Y = 40 , we have the following expressions:
|
Operator |
Description |
Example |
|
+ |
Adds two values |
X + Y = 50 |
|
- |
Subtracts the second value from the first |
X - Y = -30 |
|
* |
Multiplies both values |
X * Y = 400 |
|
/ |
Divides two values |
Y / X = 4 |
|
% |
Modulus operator and gives the value of the remainder after an integer division |
Y % X = 0 |
|
** |
Exponentiation operator; raises one variable to the power of another |
Y**X = 4010 |
Read now
Unlock full access