Cube root results in integer only...
- From: christopher.j.denver@xxxxxxxxxxxxxx
- Date: Wed, 19 Nov 2008 03:52:40 -0800 (PST)
Hi newsgroup,
I'm using a fortran compiler within Aspen Plus 2006.5 - sorry but I
don't really know which Fortran this software uses...
When I try to receive a cube root from this statement:
PI = ACOS(-1)
MM = PI ** (1./3.)
I always get MM = 1 instead of the result I wanted (1.46459...)
Does anyone know why this might be the reason? It seems like the
statement is somehow truncated, as for a real number such as 1.6995
the result is also shown as 1, whereas for 2.5865 it is shown as 2
etc...
Thanks a lot and best regards,
Christopher
.
- Follow-Ups:
- Re: Cube root results in integer only...
- From: George
- Re: Cube root results in integer only...
- From: user1
- Re: Cube root results in integer only...
- From: e p chandler
- Re: Cube root results in integer only...
- Prev by Date: Re: Read partial record with stream I/O
- Next by Date: Re: Cube root results in integer only...
- Previous by thread: Difficulty with Relatively Simple IF Structure
- Next by thread: Re: Cube root results in integer only...
- Index(es):
Relevant Pages
|