public function setRoundingMode($roundingMode)
    {
        if (in_array($roundingMode, RoundingMode::asArray())) {
            $this->roundingMode = $roundingMode;
        } else {
            $msg = "The roundingMode argument must be a value from the RoundingMode enumeration, '" . $roundingMode . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }