public function TrimCents()
    {
        $val = $this->value;

        if (floor($val) == $val) {
            return floor($val);
        }

        return $val;
    }
public function TrimCents()
    {
        $val = $this->value;

        if (floor($val) == $val) {
            return floor($val);
        }

        return $val;
    }
public function TrimCents ( ) { $ val = $ this -> value ; if ( floor ( $ val ) == $ val ) { return floor ( $ val ) ; } return $ val ; }
If no cents on the price, trim those off.

@return string
If no cents on the price trim those off .