![]() ![]() The expression 10.0N (which is also single precision because 10. Depending on the compiler settings, underflowed values may be flushed to 0. Single precision variables on an Alpha and an SGI can represent numbers from about 10(-38) to about 1038 in magnitude. src/configure -v -with-pkgversion='Debian 4.3.2-1.1' -with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs -enable-languages=c,c++,fortran,objc,obj-c++ -prefix=/usr -enable-shared -with-system-zlib -libexecdir=/usr/lib -without-included-gettext -enable-threads=posix -enable-nls -with-gxx-include-dir=/usr/include/c++/4.3 -program-suffix=-4.3 -enable-clocale=gnu -enable-libstdcxx-debug -enable-objc-gc -enable-mpfr -enable-cld -enable-checking=release -build=x86_64-linux-gnu -host=x86_64-linux-gnu -target=x86_64-linux-gnuĪnd about the variant, I don't know even how to find that out. Variable C is single precision by virtue of fortran's implicit typing rules. The variable ra is declared as double precision. Hope this gives you the info you asked for:Ĭonfigured with. Here, the intrinsic function KIND returns the kind value of DOUBLE PRECISION and assigns the value to idp. But am not sure, so I am copying in the version dump below. When double precision is used the maximum number of digits possible is 17. ![]() I think I am using Fortran 2003, on Debian Linux. To declare a real variable to have the equivalent of Fortran 77 accuracy DOUBLE PRECISION, simply do this: INTEGER, PARAMETER :: DP SELECTEDREALKIND(14) REAL(KIND DP) :: A This declares the variable A to be of type real and have at least 14 decimal places of accuracy. If you want to print in double precision you must use write and format statements. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |