add function to join rating values
This commit is contained in:
parent
97b654b4af
commit
e840e3d8c5
|
@ -227,4 +227,9 @@ export class EncuestaCompleteComponent implements OnInit {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
joinRatingValues(totalValue: Number, ratingCount: Number): Number {
|
||||||
|
const result = totalValue.toString() + '.' + ratingCount.toString();
|
||||||
|
return parseFloat(result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue