INTEGER, PARAMETER :: SINGLE=SELECTED_REAL_KIND(7)
REAL(KIND=SINGLE) :: K
REAL::X
...
K=X
WRITE(*,*) K
When i write 5 or 6 inside SELECTED_REAL_KIND
, it outputs six significant figures but when i try 7, it outputs more than 7. Can you tell me why? Where i got it wrong? Assigning is problematic?
With 5 and 6 output-> 1.39256
With 7 output-> 1.3925623893
Okey I'm asking a simple question. How can i just output 7 significant digits of this number 1.3925623893 ?