I am trying to compare two amounts. My problem is that the other amount is a decimal whereas the other one is a Double, I am using the method 'CompareTo()' to compare the amounts and it does not allow the double. I do not want to change the Double amount as it is used in may different places and it could break other peoples code. Is there a way whereby I could convert the Double amount to a Decimal?
Please help
Double maxSumInsured;
ProfidaDecimal totalClaimCost;
if(totalClaimCost.compareTo(maxSumInsured) > 0){
//some code here
}