Ask Your Question
0

How to ignore division by 0 error in macro ?

asked 2020-03-07 19:04:24 +0200

learning214 gravatar image

updated 2020-09-01 12:59:57 +0200

Alex Kemp gravatar image

How to get over division by 0 error in macro ?

Is there any way to get over division by 0 in math, as throwing some exception, etc

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-03-07 21:05:26 +0200

Ratslinger gravatar image

Hello,

You should not ignore errors nor divide by zero. Check divisor for possibility:

If b <> 0 then
    c = a/b
else
   c = something (possibly a?)
End if
edit flag offensive delete link more

Comments

Please note this is not really an LO specific question.

Ratslinger gravatar imageRatslinger ( 2020-03-07 23:21:04 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-03-07 19:04:24 +0200

Seen: 63 times

Last updated: Mar 07