A global setting determines default floating print precision. Format accepts customization.  Rationals print to arbitrary base 10 representation.

   9!:10''      NB. show print precision
6

   1p1
3.14159

   9!:11 ] 16   NB. set default

   1x1
2.718281828459045

   NB. customize
   ":!.3 ] 2p1  NB. tauday.com
6.28


   NB. compute 32 digits of Euler's number
   50j48 ": ([: +/ %@:!)@i. 2 1 1 $ 30 35x
2.718281828459045235360287471352658602238073315078
2.718281828459045235360287471352662497757147554933
   NB.                           ^xxxxxxxxxxxxxxxx

   NB. view in fixed width please.

https://www.jsoftware.com/help/dictionary/dx009.htm


Date: Sun, 15 May 2022 10:28:30 +0200
From: yt<yves.tan...@frmail.net>
To:programm...@jsoftware.com
Subject: Re: [Jprogramming] newbie question
Message-ID:<eee70943-3619-d8c6-fa5c-d71dc8d5f...@frmail.net>
Content-Type: text/plain; charset=UTF-8; format=flowed


   Dear All,
   i come back to start in J

   in jijx>tour>overview
       3p5       NB. Pi (3 * Pi ^ 5)
   918.059

   may be it is not the better way to find Pi :
       1p1       NB. Pi (1 * Pi ^ 1)

       1p1
   3.14159
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to