Why does adding two values in nVelocity always returns zero?

Posted by mike on Stack Overflow See other posts from Stack Overflow or by mike
Published on 2010-06-15T16:14:55Z Indexed on 2010/06/15 16:22 UTC
Read the original article Hit count: 153

Filed under:

I'm trying to add two values in velocity and it always returns 0. What am I doing wrong?

#set ($tmpPrice = $orderItem.ExtendedPrice + $discountAmount)

Both $orderItem.ExtendedPrice & $discountAmount are whole numbers with decimals, like this: 99.99

© Stack Overflow or respective owner

Related posts about nvelocity