Hi,
For some reason when I do a calculation with a loop in my shopping basket code, it knocks off the last 0. Which looks wrong for people. The unit price stays at $0.60 but immediately I do the code below isubtotal ends up as $0.6
I've tried round functions etc, but I can't find anything on web either to solve the prob,
thanks if you can help
----------------------------------------------
x=0
isubtotal = 0
For i = 1 to scartItem
x=x+1
isubtotal = isubtotal + arrCart(cUnitPrice,i)
next
--------------------------------------------------
the boho from soho
For some reason when I do a calculation with a loop in my shopping basket code, it knocks off the last 0. Which looks wrong for people. The unit price stays at $0.60 but immediately I do the code below isubtotal ends up as $0.6
I've tried round functions etc, but I can't find anything on web either to solve the prob,
thanks if you can help
----------------------------------------------
x=0
isubtotal = 0
For i = 1 to scartItem
x=x+1
isubtotal = isubtotal + arrCart(cUnitPrice,i)
next
--------------------------------------------------
the boho from soho