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

        $toleranceRatio = $this->tolerance / $mass;

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

        $toleranceRatio = $this->tolerance / $mass;

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

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