Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi,

I am having difficulty capturing the decimal values in my result.

For example,

If the value is divisible by a constant let’s say (16/16 = 1.0 or 32/16 = 2.0 or 48/16 = 3.0 etc...) then I need to ignore the record and if the value is not divisible by the constant and I get decimal values like (20/16 = 1.25 or 100/16 = 6.25 or 500/16 = 31.25) then I need to capture this value. I only need to capture when there is a reminder value with decimals.

Please let me know if anyone has some idea?

Thanks.


Prod: WebFOCUS 7.6.6 on Win XP SP2
Test: WebFOCUS 7.6.6 on Win XP SP2
 
Posts: 20 | Registered: January 18, 2007Reply With QuoteEdit or Delete MessageReport This Post
Guru
Posted Hide Post
Look in the Functions Manual, Numeric functions section for:

DMOD, FMOD, and IMOD: Calculating the Remainder From a Division

If your remainder is 0 you will use a WHERE to exclude the row. If the remainder is not 0 then you keep the row.


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 342 | Location: Melbourne Australia | Registered: April 15, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thank you PIIPSTER.


Prod: WebFOCUS 7.6.6 on Win XP SP2
Test: WebFOCUS 7.6.6 on Win XP SP2
 
Posts: 20 | Registered: January 18, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 


Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.