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:
parent
3652fe5d1b
commit
20594c3e91
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user