Lookat the foreign conjunction Format (8!:). It might be what you need.

On Dec 4, 2007 1:00 AM, Alex Rufon <[EMAIL PROTECTED]> wrote:

> Hi.
>
>
>
> I'm vexed lately. J
>
>
>
> You see, I've been working on sample garments material purchasing for
> some time and this one is giving me a head ache. You see, I have to work
> with % allowances which sometimes translates to numbers which have more
> than 8 decimal position. Unfortunately, this is a sample garment or a
> prototype that the industrial engineers really want me to return the
> precise values. The problem is not in calculating them but in printing
> the values.
>
>
>
> Take the following for example:
>
>   0.0000000924123412341
>
> 9.24123412341e_8
>
>
>
> Or while working with some keys ... I have the following problem:
>
> encodekey=: verb define
>
> 100000 100000 100000 base y
>
> )
>
>
>
> decodekey=: verb define
>
> 100000 100000 100000 antibase y
>
> )
>
>
>
>   encodekey 999999 12345 12345
>
> 9.99999123451234e15
>
>
>
> I do know that using the format function will print the text properly
> like so:
>   20j18 format 0.0000000924123412341
>
> 0.000000092412341234
>
>   20j0 format encodekey 999999 12345 12345
>
>    9999991234512344
>
> Unfortunately, this will entail that I have to work with boxes now since
> some of my values will be strings.
>
>
>
> Is there a setting in J or a process that I am missing so that the
> correct values are printed? Thanks.
>
>
>
> r/Alex
>
> ----------------------------------------------------------------------
> 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