[petsc-users] How to specify how many digits we could print	using PetscPrintf
    Barry Smith 
    bsmith at mcs.anl.gov
       
    Fri Dec 11 21:49:55 CST 2015
    
    
  
> On Dec 11, 2015, at 9:40 PM, Fande Kong <fdkong.jd at gmail.com> wrote:
> 
> Hi all,
> 
> By default, PetscPrintf prints 6 digits.
   Not really, it uses the standard printf format commands.
> How to specify how many digits we could print using PetscPrintf? For example, I want to print 16 digits for a double value (PetscReal).
   See for example http://pubs.opengroup.org/onlinepubs/009695399/functions/fprintf.html
  Barry
> 
> 
> Thanks,
> 
> Fande,
    
    
More information about the petsc-users
mailing list