Thanks.  Hopefully, that wasn't on the first page of the docs.

That's a lot better than what I was doing:
#set( $foo = "#" )
#set( $numberFormat = "#,#${foo}0.00" )

On Tue, Sep 21, 2010 at 11:25 AM, Claude Brisson <cla...@renegat.net> wrote:
> Try using simple quotes rather than double quotes.
>
>
>  Claude
>
> On 21/09/2010 17:00, bradford wrote:
>>
>> I can't format with "#,##0.00", because Velocity thinks I'm trying to
>> insert a comment.
>>
>> Neither of the following work:
>>
>> #set( $numberFormat = "#,##0.00" )
>> <td>$numberTool.format($numberFormat, $foo.Value)</td>
>>
>> #set( $numberFormat = "#,##0.00" )
>> <td>$numberTool.format("#,##0.00", $foo.Value)</td>
>>
>> Any suggestions on how I can get around this?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
>> For additional commands, e-mail: user-h...@velocity.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
> For additional commands, e-mail: user-h...@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org

Reply via email to