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 <[email protected]> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]