Friday, 10 April 2020

C# 千分位 無法從 string轉換成 System.IFormatProvider

C# 開發錯誤訊息:要顯示千分位,出現「無法從 string轉換成 System.IFormatProvider」

解決方法:透過Convert.ToDouble(XXX).ToString("#,#"),將XXX資料轉型態,可正確將數字三位一撇顯示千分位符號

For example,
C13 = Convert.ToDouble(CURR_STOCK_QTY).ToString("#,#"),
C14 = Convert.ToDouble(ACT_STOCK_QTY).ToString("#,#"),

Reference:
https://webcache.googleusercontent.com/search?q=cache:enXzmubl1TIJ:https://zhidao.baidu.com/question/935880315248484772.html+&cd=1&hl=zh-TW&ct=clnk&gl=tw

No comments:

Post a Comment

群益台灣精選高息ETF基金(00919)」指數編製原則調整說明

本公司經理之「群益台灣精選高息(證券代號:00919)」(以下稱本基金)所追蹤之標的指數「臺灣指數公司特選臺灣上市上櫃精選高息指數」部分指數編製規則異動,業經金融監督管理委員會以中華民國(以下同)114年4月23日金管證投字第1140339355號函備查在案,標的指數成分股檔數由...