Math Functions
You will see how math function uses
is commonly used in math (3.14)
this.Text = Math.PI.ToString();//This refer to Form1
Absolute Value;
int AbsoluteValue= Math.Abs(int.Parse(txtbirinci.Text));
this.Text = AbsoluteValue.ToString();
Rounds the given decimal value to the next lower integer.
double value=Convert.ToDouble(Textbox1.Text);
this.Text=Math.Floor(value).ToString();
Complements the given decimal value to the next higher integer.
Math.Ceiling(Convert.ToDouble(Textbox1.Text)).ToString());
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.
It doesn't look at the decimal part of the number,but just hand over the full part to you.
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.
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.