tomlbacon
23rd April 2004, 16:14
I have a list/Sales Price Divided by a Price Quantity.

Example:

Sales Price $317.4634 / Price Quantity 1000 ea

317.4634 / 1000 = 0.3174634

on the form it shows 0.31 how do I get this rounded up to 0.32.

UOM.Sale.pric = Sale.price / Pric.qty is what in the program script.

tools123
23rd April 2004, 16:50
Refer to the tools functions -

format.round()

round()

bdittmar
23rd April 2004, 17:08
round(value, long digits, long mode)

mode 0 = truncate
mode 1 = normal
mode 2 = round up

For ex.

round(1.345, 2, 1) gives 1.350000