Try putting "x" at the end of the long number to retain precision:
|.&.":^:2: 123450245000x
This is a cute trick.
On Sat, Sep 17, 2011 at 8:21 PM, Bo Jacoby <[email protected]> wrote:
> On Sat, Sep 17, 2011 at 5:05 PM, David Vaughan
> <[email protected]> wrote:
> > Hi, how could I drop trailing zeros from a number? e.g. 123450245000
> becomes
> > 123450245
>
>
> On 18. september 2011 Raul Miller <[email protected]> wrote
> |.&.":^:2: 123450245000
> 123450245
>
> --
> Raul
>
>
> But Raul's solution doesn't work for me:
> |.&.":^:2: 123450245000
> |ill-formed number
> | |.&.":^:2:1.2345e11
> Bo
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm