[rrd-developers] NAN-safe ADD

Tobias Oetiker tobi at oetiker.ch
Thu Mar 6 18:18:58 CET 2008


Hi Steve,

this would be sort of like the COALECE operator in SQL ...

this does not solve the ALL NAN scenario though.

cheers
tobi

Today Steve Hill wrote:

> On Thu, Mar 06, 2008 at 06:48:32AM +0100, Tobias Oetiker wrote:
>
> > or if you insist to make this simpler, how about implementing a
> > NANTOZERO operator ?
>
> Wouldn't a generic 'IFNAN' operator be more useful? That way I could
> substitute any other value, as appropriate for my calculation. You
> could still get the NANORZERO with something like:
>
> a,0,IFNAN
>
> Steve
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902



More information about the rrd-developers mailing list