Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Error: arithmetic over/underflow - Divided by zero?

Avatar

Avatar
Validate 1
Level 1
kadel27
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
kadel27
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
kadel27
Level 1

01-12-2015

Hello,

Im newbie on Adobe LiveCycle. Ive successfully create a form and now I wanted to put some calculating on it.

Everything is fine, pdf is calculating, but Im getting an errors, because I understand that Im trying to calculate with the filed, those are empty - not inputed yet as a zero fields => divide by zero... ?

May somebody please help me, how to write the formula to not get the errors?

My actual formula is:

pod11.rawValue = ( ( ( pod2.rawValue * ( pod8.rawValue / 100 ) ) - pod6.rawValue ) / pod2.rawValue ) * 100

Thank You very much for the help!

K.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

01-12-2015

Hi there,

to prevent errors within calculate you should verify each fields to make sure there is no rawValue that is equal to null..

if you are using formcalc, use "<>" or "ne" to specify not equal to

if you are using javascript, use "!=" or "!==" to specify not equal to

Hope this will help!

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
kadel27
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
kadel27
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
kadel27
Level 1

02-12-2015

THANKY YOU VERY MUCH!!!!

You made my day! 🙂