For Programmers: Free Programming Magazines  


Home > Archive > Fortran > December 2005 > Re: high-precision type









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: high-precision type
Arjen Markus

2005-12-13, 4:13 am

Use the selected_real_kind() standard function to find out whether the
precision and range you want is available and what kind number to use:

integer :: p
do p = 1,100
write(*,*) 'Precision: ',p, ' - kind: ', selected_real_kind(p)
enddo

You can also look at the pages http://users.erols.com/dnagle/ - the
portability project in particular.

Regards,

Arjen

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com