forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

real extended (WIN32 only)

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Wswain



Joined: 17 Jul 2009
Posts: 12

PostPosted: Wed Sep 02, 2009 7:52 pm    Post subject: real extended (WIN32 only) Reply with quote

Has anybody declared a variable with the Extended type.

FTN95 documentation that came with Silverfrost states that there is a REAL type of extended.

Thanks,
Bill
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Wed Sep 02, 2009 9:55 pm    Post subject: Reply with quote

This refers to 80 bit real values declared as REAL(KIND=3) or REAL*10.
You can make this the default REAL kind by using /DEFREAL_KIND 3 on the FTN95 command line.

See ftn95.chm under "Kind parameters for intrinsic types".
Back to top
View user's profile Send private message AIM Address
Wswain



Joined: 17 Jul 2009
Posts: 12

PostPosted: Wed Sep 02, 2009 10:00 pm    Post subject: thanks Reply with quote

Thanks
Back to top
View user's profile Send private message
Wswain



Joined: 17 Jul 2009
Posts: 12

PostPosted: Wed Sep 02, 2009 10:06 pm    Post subject: Reply with quote

What is the maximum assignment a REAL*10 can accept

I tried

REAL*10 Test
Test = 1e38, OK


Anything larger, error on compile as "Floating point number out of range

I use the Huge function and get 1.1....e+4932

How do these numbers exists and yet the variable assignments seem to be restricted to 1e38 or REAL*8 maximum?

Thanks,
Bill
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Thu Sep 03, 2009 2:20 am    Post subject: Reply with quote

you need to define a real*10 constant, and not the real*4 constant you have used.

try the following
Code:

      real*10 xx
      xx = 1.0e4000
      xx = 1.0e4000_3
      end

you should look at the ftn95 help for real kind.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group