Why does adding two values in nVelocity always returns zero? -


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

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

Both $ orderItem.ExtendedPrice & amp; The $ discount allowance is that decimal numbers, such as: 99.99

try $ tmpPrice = ($ OrderItem.ExtendedPrice + $ discountAmount)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -