Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiply a derived a datatype

Status
Not open for further replies.

bobbyad

Technical User
Dec 10, 2004
1
US
Hi, I'm trying to multiply a derived data type by 100 in order to convert it from a floating point number (2.65) to 265 but am having troubles doing so, any ideas?
 
What sort of problems? Does this F90 code work for you?
Code:
x = 2.65
i = floor (x * 100 + 0.5)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top