use the decimal type's constructor that takes a double value as an argument.
the doubleValue variable is converted to a decimal and stored in the decimalValue variable.
Note that converting from double to decimal can result in a loss of precision, as double can represent a wider range of values than decimal.
use the Convert.ToInt32() method or the type cast (int) operator.
Note that when converting from a double to an int, the decimal portion of the number is truncated.