plugin/result/Manager/ResultManager.php
public function isValidMark(Result $result, $mark)
    {
        // normalize french decimal marks
        $mark = str_replace(',', '.', $mark);

        return is_numeric($mark) && (float) $mark <= $result->getTotal();
    }
public function isValidMark(Result $result, $mark)
    {
        // normalize french decimal marks
        $mark = str_replace(',', '.', $mark);

        return is_numeric($mark) && (float) $mark <= $result->getTotal();
    }
public function isValidMark ( Result $ result , $ mark ) { // normalize french decimal marks $ mark = str_replace ( ',' , '.' , $ mark ) ; return is_numeric ( $ mark ) && ( float ) $ mark <= $ result -> getTotal ( ) ; }
Returns whether a mark is valid.

@param Result $result
@param mixed  $mark

@return bool
Returns whether a mark is valid .