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

Rounding Shared NumberCur Variables 1

Status
Not open for further replies.

TXP007

Programmer
Aug 29, 2008
11
0
0
US
Hello,

I am using CRXI against SQL server views.

I have a SharedCur variable defined like so...

Shared NumberCur groupB_expected_dollars :=
{@f_Shared_Total_Pay_Amount}*{@f_Group_Availability}

How do I round my SharedCur variable to the nearest whole dollar?

Thanks for the assistance.

TXP007

 
Never heard of a numbercur variable--assuming you mean numbervar.

Shared Numbervar groupB_expected_dollars :=
round({@f_Shared_Total_Pay_Amount}*{@f_Group_Availability},0)

-LB
 
Actually, I meant CurrencyVar. I was going back and forth between that and NumberVar trying to figure it out.

As usual, you are correct!

Thank you,
TXP007
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top