Nvelocity String To Double Conversation

177 views Asked by At

Hi All I'm Using Nvelocity Library and i have some problem so i Have number 57,45 and i cant convert it to double $Convert.ToDouble($Value) returns 0.

Thanks.

1

There are 1 answers

0
Gino4nx On

My Code Looks Like this

#foreach($gridRow in $gridData)
 #set($tmpPrice = $gridRow.get_Item("Price").replace(",", "."))
 #set($sumPrice = $sumPrice + $convert.toDouble($tmpPrice))
#end