click below
click below
Normal Size Small Size show me how
CPI Module 13
Math Class and Methods
Term | Definition |
---|---|
object | structure containing data and methods that manipulate the data, usable example of the thing the class represents |
class | an abstract representation of something |
methods | operations that can be performed on data, may take some input values through parameters and may return a value of a particular data type |
Abs(num) | returns the absolute value of a positive or negative number |
Sqrt(num) | returns the square root of a number |
Round(num,places) | returns number nearest to the specified value |
Sign() function | works with these data types: decimal, double, Int16, Int32, Int64, SByte, Single |
round() function | works with either a decimal or a double, the variable/value that represents the number of places should be an integer |