add function to join rating values

This commit is contained in:
Eduardo Quiros 2021-08-11 18:54:31 -06:00
parent 97b654b4af
commit e840e3d8c5
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 5 additions and 0 deletions

View File

@ -227,4 +227,9 @@ export class EncuestaCompleteComponent implements OnInit {
}
});
}
joinRatingValues(totalValue: Number, ratingCount: Number): Number {
const result = totalValue.toString() + '.' + ratingCount.toString();
return parseFloat(result);
}
}