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

help with Number conversion

Status
Not open for further replies.

wysiwygger

Programmer
Jun 20, 2006
78
AU
Hi,

I'm trying to get a number formated like xxx.xx with only 2 digits as cents.

I tried ToNumber but still got the same result: xxx.xxxxx

if {OEORDD.LINETYPE}=1 THEN
ToText({OEORDD.UNITPRICE},{OEORDD.UNITPRCDEC})
else ""

Any help appreciated.
 
sorted:
{OEORDD.UNITPRCDEC} was the field in the database containing the number of decimals.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top