for (int i = EnumPostage.values().length - 1; i > 0; i--) {
if (postage <= 0)
break;
EnumPostage postValue = EnumPostage.values()[i];
if (postValue.getValue() > postage)
continue;
int num = 99;
if (!virtual)
num = getNumStamps(postValue);
int max = (int) Math.floor(postage / postValue.getValue());
if (max < num)
num = max;
stamps[i] = num;
postage -= num * postValue.getValue();
}
return stamps;
}