Wow! Being able to distinguish the datatype of a displayed value by it's appearance. And have the ability to control the datatype of a stored value by entering the value in the required format. What a novel, (and very useful) idea!
Skip Skip Cave Cave Consulting LLC On Fri, Aug 19, 2016 at 9:11 AM, robert therriault <[email protected]> wrote: > Bill, > > If you extended this idea to rationals so that 3r1 displayed as 3r1 > instead of 3 then you would have a way to distinguish rational and extended > types from integers. > > This could be done with floats as well, so that by including the decimal > point and the right 0, you could immediately see that 1.0 was a float > result and was different from the integer 1. > > Unicode and literal would still be a challenge to differentiate using text > alone, but being able to clearly differentiate the numerical types through > text display may be something to think about. > > Cheers, bob > > > On Aug 19, 2016, at 12:58 AM, bill lam <[email protected]> wrote: > > > > If you can take away the if(v->im) check, it then always displays > > both real and imaginary parts. Not sure this should be done but > > it looks harmless. > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
