4 ms·
From the doc, _3 NB. negative numbers start with underscore _ NB. sole underscore is infinity: a number __
by t-writescode 1y ago
From the doc,
_3 NB. negative numbers start with underscore
_ NB. sole underscore is infinity: a number
__ NB. negative infinity
Is this a standard I'm unaware of?
- avmich 1y agoThe use of underscore for negative numbers is J's choice, explained e.g. here - https://www.jsoftware.com/docs/help807/jforc/preliminaries.htm#_Toc191734298 https://www.jsoftware.com/docs/help807/jforc/preliminaries.h... . Explicitly representing infinity, and working with it in some cases, allows to reduce number of exceptions...
- Avshalom 1y agoAPL used ¯3 for negative 3; J went underscore to be similar but ascii.