1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-02 14:29:07 +01:00

Need to be cast into int

This commit is contained in:
Zrips 2020-10-08 21:06:32 +03:00
parent 3652fe5d1b
commit 20594c3e91

View File

@ -50,13 +50,13 @@ public class PaymentData {
public Double GetAmount(CurrencyType type) {
if (!payments.containsKey(type))
return 0D;
return (payments.get(type) * 100) / 100.0;
return (int) (payments.get(type) * 100) / 100D;
}
public Double GetAmountBylimit(CurrencyType type, int limit) {
if (GetAmount(type) > limit)
return (double) limit;
return (GetAmount(type) * 100) / 100.0;
return (int) (GetAmount(type) * 100) / 100D;
}
public Long GetLastAnnounced() {