in reply to PDL encore

Yes, use zero instead of 999. That's math :)

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: PDL encore
by etj (Priest) on Jun 26, 2022 at 02:57 UTC
    Setting "bad" values to 0 is mathematically valid for this situation. A more PDL-ish approach however is to use "bad values"; doing $pdl->badvalue(999) would achieve the aim here.