Focal Point
[CLOSED]NULL or ZERO value division scenario

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2617036386

August 29, 2016, 02:45 AM
Shankar
[CLOSED]NULL or ZERO value division scenario
Hi All,
I am DEFINEing a columns using two fields as (PRICE/AVG_PRICE)*100.

What will happen, if AVG_PRICE is null or 0. Will it throw error? If yes, how to handle such scenario. Please advise.

Many Thanks.

This message has been edited. Last edited by: <Emily McAllister>,


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
August 29, 2016, 03:11 AM
Allen
SET %STRICTMATH='OLD' will return zero as the output if the AVG_PRICE is zero or MISSING.

By default, it SET %STRICTMATH='NEW', in this case it will give a error

(FOC201) INTERRUPT. DIVISION BY ZERO
or
You may get a wrong value.


Webfocus 7.7.0.3, Windows 7 , HTML, XLS, FLEX, AHTML, PDF