Bob - thanks, yes that's it.  It does not seem to come up in a search for
"format" unless it's further down than I bothered looking.

On Thu, Sep 12, 2019 at 10:13 AM 'robert therriault' via Programming <
programm...@jsoftware.com> wrote:

> Hi Devon,
>
> You are probably thinking of the foreign conjunction 8!:y (Format)
>
> J dictionary https://www.jsoftware.com/help/dictionary/dx008.htm
>
> Nuvoc https://code.jsoftware.com/wiki/Vocabulary/Foreigns#m8
>
> Cheers, bob
>
> > On Sep 12, 2019, at 6:57 AM, Devon McCormick <devon...@gmail.com> wrote:
> >
> > I tried searching the wiki and noticed that there is a "printf" add-on
> for
> > C-like formatting.  Also, I recall that there is something that uses text
> > format specifiers, like '<9.3d>' or such.  I know I've used it but cannot
> > find the code or a reference on the J site.
> >
> > On Thu, Sep 12, 2019 at 12:38 AM Henry Rich <henryhr...@gmail.com>
> wrote:
> >
> >> I'm puzzled.  When you look at
> >> https://code.jsoftware.com/wiki/Vocabulary/quoteco#dyadic , the second
> >> example uses a complex x to control formatting.  If you read on in the
> >> detail, you see complex x used repeatedly.
> >>
> >> Do this: go back to that page and read carefully, especially after "More
> >> Information", and especially item 2 under "Numeric y".  If you still
> >> think the definition of complex x is unclear, come back & we'll discuss
> >> how to improve it.
> >>
> >> Henry Rich
> >>
> >> On 9/12/2019 12:04 AM, HH PackRat wrote:
> >>> On 9/11/19, Henry Rich <henryhr...@gmail.com> wrote:
> >>>> The definitive documentation of J is NuVoc
> >>>> https://code.jsoftware.com/wiki/NuVoc
> >>>> ": is described in
> >> https://code.jsoftware.com/wiki/Vocabulary/quoteco#dyadic
> >>> and Chris Burke said essentially the same thing.
> >>>
> >>> I'm very familiar with the  ":  primitive.  It was the  0j4
> >>> construction that I don't recall coming across before for numeric
> >>> formatting.
> >>>
> >>> I would never have thought to look under imaginary numbers in NuVoc to
> >>> find out how to format a numeric result for display (0j4 or 6j2, for
> >>> example).  Besides, the imaginary numbers section in NuVoc doesn't
> >>> deal with numeric display formatting at all.  I also saw it mentioned
> >>> in the "Vocabulary/quoteco" section where it was used but never
> >>> defined.  (Based on context there, my guess is that the first digit
> >>> relates to the digits to display to the left of the decimal point and
> >>> that the second digit relates to the number of digits to display to
> >>> the right of the decimal point.  But where is that definition to be
> >>> found?)  As with imaginary numbers, I would never have thought to look
> >>> under ": to find out about even using 0j4.
> >>>
> >>> So my question still stands:  where do I find the definition of the
> >>> type of numeric formatting such as the 0j4 construction?  How would I
> >>> have found it by searching the wiki if I didn't know the 0j4 type of
> >>> construction in the first place?
> >>>
> >>> Harvey
> >>> ----------------------------------------------------------------------
> >>> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> >>
> >> ---
> >> This email has been checked for viruses by AVG.
> >> https://www.avg.com
> >>
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> >
> >
> > --
> >
> > Devon McCormick, CFA
> >
> > Quantitative Consultant
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 

Devon McCormick, CFA

Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to