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

Trailing Zeros....

Status
Not open for further replies.

Jlok

IS-IT--Management
Mar 28, 2002
23
US
Here's the formula..
If {PACKINGSLIP_HEADER.S_TERMS} = "NET 30 DAYS" then
IDAutomationFontEncoderCode128 ({PACKINGSLIP_HEADER.S_ORDER_NO} & {@upstotal} , 0)
else
IDAutomationFontEncoderCode128 ({PACKINGSLIP_HEADER.S_ORDER_NO} , 0)

Problem is with @upstotal field, I need this to be a whole number. Field now is 2 place decimal.

Example Field now -->123.45
I need 123
Tried rounding, but it gives 123.00 etc...
Ideas?????
 
"({PACKINGSLIP_HEADER.S_ORDER_NO} & {@upstotal} , 0)"

Looks to me as though {@upstotal} is already in text format.

The final result of {@upstotal} could be

ToText(whatever-the-total-is,0,"","")

this will round the value to zero decimals and eliminate the decimal point and thousand separator

Hope this helps
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top