Apologies - I should have read the associated thread(s). I guess extended precision does OK for whole number display, but croaks to a rational for decimals...
On 12/5/07, Alex Rufon <[EMAIL PROTECTED]> wrote: > > Hello Stuart, > > I need the same values that are not coverted to the notation. > > So if I do: > wdclipwrite 0.0000879 0.0000567 0.0000000924123412341 > 32 > I should get the following in Notepad: > 0.0000879 0.0000567 0.0000000924123412341 > > r/Alex > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Stuart Baker > Sent: Tuesday, December 04, 2007 10:56 PM > To: General forum > Subject: Re: [Jgeneral] Engineering notation > > I get: > > > 9!:10'' > 16 > wdclipwrite 0.0000879 0.0000567 0.0000000924123412341 > 32 > > > (From Notepad after ctrl-V:) > > 8.79e_5 5.67e_5 9.24123412341e_8 > > - is that not what you require? > > > On 12/4/07, Alex Rufon <[EMAIL PROTECTED]> wrote: > > > > Hello Devon, > > > > Yes, I fooled around with this too. > > > > You see, the problem is not in the number of digits but the precision. > > Here is the current setting of my J Session: > > 9!:10 '' > > 16 > > Which shows I have 16 digits precision ... so if I used your example: > > 0.123456789112 > > 0.123456789112 > > There is no problem ... but I am working with really small precision > like: > > 0.0000879 > > 8.79e_5 > > Unfortunately, if you use do this in conjunction with the clipboard > > wdclipwrite 0.0000879 0.0000567 > > 15 > > You'll get "erroneous" data. > > > > Of course I already have a work around for this but I was hoping that > > there are simpler ways to print the proper number. > > > > Still, thanks. :) > > > > r/Alex > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > > On Behalf Of Devon McCormick > > Sent: Tuesday, December 04, 2007 8:59 PM > > To: General forum > > Subject: Re: [Jgeneral] Engineering notation > > > > I assume you know about the global print precision settings? > > > > 9!:10 '' NB. What is current precision? > > 8 > > > > 9!:11]12 NB. Set to 12 digits > > 0.123456789112 > > 0.123456789112 > > > > On 12/4/07, 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 > > > > > > > > > > > -- > > Devon McCormick, CFA > > ^me^ at acm. > > org is my > > preferred e-mail > > ---------------------------------------------------------------------- > > 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 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
