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.