Also,  surely the integer restriction is consistent with the “scientific 
notation” that’s so pervasive in science and in computer languages. 

Cheers,

Mike

Sent from my iPad

> On 8 Nov 2021, at 11:47, Raul Miller <[email protected]> wrote:
> 
> Conceptually, 2e3.4 would be 2 * 10^3.4 or approximately 5023.77
> 
> But, the code path for handling the part on the right of the 'e'
> currently only handles integer values.
> 
> So when you ask "why", I guess you are asking "why not allow any
> values representable by the constant format".
> 
> And, I think the reason there is that 2e3.4 is more likely to be a
> typographical error than an intentional use of the notation. These
> language choices are somewhat heuristical, of course, but try thinking
> of it this way:
> 
> "If this were possible, what useful problems would it help solve?"
> 
> Thanks,
> 
> -- 
> Raul
> 
>> On Mon, Nov 8, 2021 at 12:17 AM Elijah Stone <[email protected]> wrote:
>> 
>>    2x3.4
>> 59.9282
>>    2p3.4
>> 98.0256
>>    2e3.4
>> |ill-formed number
>> |   2e3.4
>> |   ^
>> 
>> Whyn't?
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to