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

Need help on how to do a rounding in ISL of M9700

Status
Not open for further replies.

leojs

Technical User
Nov 15, 2012
3
PH
Hi Guys,

I hope you can help me on how i will do rounding on @TNDTLL before it will post to the 3rd party system as the 3rd party system can't accept decimal only whole number.

for example:

Total Bill: 249.49 will be round off to 249.00 and post to 3rd party system
or
Total Bill: 250.51 will be round off to 251.00 and post to 3rd party system

Regards,
Joel
 
Hi Guys,

anybody can help me here.... :(

Regards,
Joel
 
Hi Guys,

just to share the resolution after a several testing:

var nLPoint: N9
var nPoint : N9

nLPoint = abs(@TNDTTL)
if ((@TNDTTL - nLPoint) < 0.5)
nPoint = nLPoint
else
nPoint = nLPoint + 1
endif

i hope share something helpful...

regards,
joel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top