C#MathQuiz.md - brainchildservices/curriculum GitHub Wiki
What is the use of Math class?
It is used to provide static methods and constants for logarithmic, trigonometric, and other useful mathematical functions.
What is a field in Math class?
A field is a variable that is declared in a class or struct.
What are the two different fields in Math class?
Math.E Field: This field represents the natural logarithmic base, specified by the constant, e.
Math.PI Field: It represents the ratio of the circumference of a circle to its diameter, specified by the constant, PI(π).
Define Math.Round() function.
The Math.round() function returns the value of a number rounded to the nearest integer.
Define Math.Truncate() function.
Math.Truncate() is a math class method which is used to compute an integral part of a specified decimal number or double-precision floating-point
number
Define Math.Floor() function.
Returns the largest integral value less than or equal to the specified number.