Wow. I like this syntax. I'm +1 on supporting it.
Attila.
Post by Andy ZeneskiYea, well that's a pain in the butt, needs to be a one liner. should add a
[1..*]
-Andy
----- Original Message -----
Sent: Friday, June 06, 2003 3:32 PM
Subject: Re: [Freemarker-devel] Currency w/ out currency symbol
Post by Chris NoklebergPost by Andy ZeneskiWhat if I don't know what last is? I need str[1..]
Actually what I am doing is price?string.currency[1..?]
price?string.currency[1..price?length] does not work due to the fact
that
Post by Chris NoklebergPost by Andy Zeneskithe trailing 0 is not there if price = 3.4
Sorry, you'll need to do something like
<#function mycurrency value>
<#local value = value?string.currency>
<#return value[1 .. value?length - 1]>
</#function>
${mycurrency(4.2)}
prints "4.20" in my locale. (I tested this time...)
-Chris
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
FreeMarker-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freemarker-devel
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
FreeMarker-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freemarker-devel