An interpreter curiosity:
1b_ NB. j interpreter curiosity 6.02 64 linux
0
1r__
0
1b_ 1r__
|ill-formed number
The rational numbers of these examples are beyond the defined scope
"...digits followed by an r followed by further digits denote a rational
number."
NB. Terrific! pc_rdm3 handles a mess.
".(,'-', pc_rdm3)'2r3x1ar_4r5e0b1.3a2'
_1.332e_15j_8.882e_16
NB. tolower of nu...@tolower is incorrectly global
1bA
|ill-formed number
pc_rdm3'1bA'
(('0123456789a'i.'a')#.~])10#.'01'i.'1'
1b_ NB. j interpreter curiosity 6.02 64 linux
0
1r__
0
1b_ 1r__
|ill-formed number
pc_rdm3'1b_'
|assertion failure: assert
| pc_rdm3'1b_'
pc_rdm3'1r__' NB. outside dictionary definition.
|assertion failure: assert
| pc_rdm3'1r__'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm