arithmetic over/underflow | Community
Skip to main content
June 6, 2021
Solved

arithmetic over/underflow

  • June 6, 2021
  • 2 replies
  • 1828 views

I am getting over/underflow error, below is the formula and related values:

 

UtilizedContractValue = 0

ApprovedContractValue = 0

 

$=(UtilizedContractValue/ApprovedContractValue)

 

When you open the form both values are zero initially.

 

Need help to resolve it trough 'FormCalc' 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

Divide by zero is not a valid case, you will always get exception.

You need to put a check, in case the divisor is 0

https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-discussions/help-divide-by-zero-errors/td-p/97212

2 replies

VeenaVikraman
Community Advisor
Community Advisor
June 7, 2021

@aki15a9 Can you please let us know which tool you are using ? Doesn't seem to be an issue related to AEM 

 

@kautuk_sahni 

AKI15A9Author
June 7, 2021
I am using Adobe Livecycle
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
June 7, 2021

Hi,

Divide by zero is not a valid case, you will always get exception.

You need to put a check, in case the divisor is 0

https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-discussions/help-divide-by-zero-errors/td-p/97212

Arun Patidar
AKI15A9Author
June 7, 2021
Thank You, but I am still getting error. Maybe my script has mistake. Can you suggest a script?