Unable to put Decimal points for Integer number values for Number formula field.
Summary:
As per Business requirements, needed the Number formula field at Subscription Product called "Annualized TCV" value to return calculated integer values in form of double with decimal points. For eg:- 25 should be store in form of "25.00" so it matches with TotalContractValue OOTB field.
Version (include the version you are using, if applicable):
23C (11.13.23.07.0)
Code Snippet (add any code snippets that support your topic, if applicable):
Groovy Script of Number Formula field:
if(MonthlyRecurringRevenue != null)
{
Double mrr=(MonthlyRecurringRevenue*1.00d).doubleValue();
Double tcv=TotalContractValue.toDouble();
Double acv=mrr*12.00d;
if(acv >= tcv)
{
acv = tcv*1.00d;
}
String acv1=String.format("%.2f", acv);
1