select_precision(n) 1.0 "flibs"
select_precision - Select the precision for real variables
TABLE OF CONTENTS
DESCRIPTION
COPYRIGHT
The auxiliary select_precision module defines three parameters
by which you can select the precision for real variables and constants:
-
sp - Single precision
-
dp - Double precision (the real kind whose precision is larger
than that of single precision)
-
wp - Working precision. If you consistently use wp as the
kind for your real variables and constants, then switching between
single and double precision is merely a matter of setting wp to
either sp or dp in this module and recompiling.
Note: One of the pitfalls in using double precision is that
literal constants, such as 1.2345678901234567890 are not
automatically interpreted as double precision. You need to specify the
kind explicitly: 1.2345678901234567890_wp will define the
constant in the working precision.
Copyright © 2008 Arjen Markus <arjenmarkus@sourceforge.net>