How to convert number to text in thousand format?

5 ビュー (過去 30 日間)
Pete sherer
Pete sherer 2021 年 10 月 29 日
回答済み: Pete sherer 2021 年 11 月 1 日
tt = strtrim( string(num2str( [2598.32 256 23125]', '%1.2f')))
tt =
3×1 string array
"2598.32"
"256.00"
"23125.00"
Want result to be
"2,598.32"
"256.00"
"23,125.00"

採用された回答

Chris
Chris 2021 年 10 月 29 日

その他の回答 (1 件)

Pete sherer
Pete sherer 2021 年 11 月 1 日
Thanks very much

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by