TagnVelocity

NVelocity template with decimal to two decimal places

N

I wanted to be able to output a decimal value from an object in my NVelocity template. For example, the value of the decimal was: 3.40000 to represent 3.4. The end result: Total Order Value: 3.40 GBP I needed to display this as currency format. Sure, I could of used this String.Format method, but that adds £ or $ or whatever (depending on your environment setup) to the start of the resulting...