src/Core/Tolerance.php
public function getDaltonDelta($mass)
    {
        if ($this->unit == Tolerance::DA) {
            return $this->tolerance;
        }

        $toleranceRatio = $this->tolerance / 1000000;

        return $mass * $toleranceRatio;
    }
public function getDaltonDelta($mass)
    {
        if ($this->unit == Tolerance::DA) {
            return $this->tolerance;
        }

        $toleranceRatio = $this->tolerance / 1000000;

        return $mass * $toleranceRatio;
    }
public function getDaltonDelta ( $ mass ) { if ( $ this -> unit == Tolerance :: DA ) { return $ this -> tolerance ; } $ toleranceRatio = $ this -> tolerance / 1000000 ; return $ mass * $ toleranceRatio ; }
Calculates the Dalton tolerance value of this mass using the set tolerance value

@param float $mass
Mass to calculate tolerance for
@return float Tolerance value
Calculates the Dalton tolerance value of this mass using the set tolerance value