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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To the Power

Status
Not open for further replies.

GR44

Technical User
Jan 13, 2003
6
US
In Crystal, is there a function/way to take a field to a power? (i.e. {interest_rate] to the [x] power)
 
Thank you for your feedback. I tried using the ^ character but got a "The remaining text does not appear to be part of the formula" error. Below is the formula:

({@Market_Price}*1.12)^((round(({optstmt_view.Grant_Expiration_Date}-AsofDate)/365),0)

Here I'm trying to take the Market Price to a power. The power is calculated as the difference between two dates and divided by 365 to get a year equivalent.

Thanks again for your help.
 
Should it not be:

({@Market_Price}*1.12) ^ (Round(({optstmt_view.Grant_Expiration_Date}-AsofDate),0)/365)

As it is, the formula is struggling with /365 as a component of the Round function.

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top