Math Functions
You will see how math function uses
Pi;
is commonly used in math (3.14)
Absolute Value;
Floor;
Rounds the given decimal value to the next lower integer.
Ceiling;
Complements the given decimal value to the next higher integer.
Round;
It rounds more than half of the number to an upper value and less than half to the lower value.
Note:The number before. completes to a lower value if the number is even, and to the upper value if odd.
Truncate;
It doesn't look at the decimal part of the number,but just hand over the full part to you.
Max,Min;
Min , it brings us the lowest value entered.
Max, it bring us the highest value entered.
**Note : If entered value more than 2;
($"Girilen Değerlerden En kücüğü:{Math.Min(Math.Min(int.Parse(txtbirinci.Text), int.Parse(txtikinci.Text)), int.Parse(txtucuncu.Text))}")
Sqrt;
Takes the square root of an entered value.
Sign;
It notifies about whether a number is negative positive or equal to 0. Returns -1 if number is negative, 0 if neutral, +1 if positive.
Last updated
Was this helpful?