Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好,我正在使用 Nvelocity 库,我遇到了一些问题,所以我有 57,45 号,我无法将其转换为双倍 $Convert.ToDouble($Value) 返回 0。
谢谢。
我的代码看起来像这样
#foreach($gridRow in $gridData) #set($tmpPrice = $gridRow.get_Item("Price").replace(",", ".")) #set($sumPrice = $sumPrice + $convert.toDouble($tmpPrice)) #end