[Trunk | Library]: number-utils.class.ts: [Bug fix]: thousands (K) calculation: if num greater or equal to 1000 & 'mi' renamed to 'M'.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57499 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-11-02 01:27:34 +00:00
parent 97cd06cce7
commit 6327e1916d
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ export class NumberUtils{
if(num >= 1000000){
num=num/1000000;
num= Math.round(num);
roundNum = { "number": num, "size": "mi", count: initialNum};
}else if( num >= 10000){
roundNum = { "number": num, "size": "M", count: initialNum};
}else if( num >= 1000){
num=num/1000;
num= Math.round(num);
roundNum = { "number": num, "size": "K", count: initialNum};