put the note in float
This commit is contained in:
parent
c3abe78460
commit
348af6b56d
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class Note {
|
|||
private $coef;
|
||||
private $max;
|
||||
|
||||
public function __construct(string $intitule, int $note, int $max, float $coef = 1.0) {
|
||||
public function __construct(string $intitule, float $note, float $max, float $coef = 1.0) {
|
||||
$this->intitule = $intitule;
|
||||
$this->note = $note;
|
||||
$this->coef = $coef;
|
||||
|
@ -24,7 +24,7 @@ class Note {
|
|||
}
|
||||
|
||||
public function getNoteOn20() {
|
||||
return ($this->note / $this->max) * 20;
|
||||
return ($this->note / $this->max) * 20.0;
|
||||
}
|
||||
|
||||
public function getCoef() {
|
||||
|
|
Loading…
Reference in a new issue