How to convert number to text in thousand format?

6 visualizaciones (últimos 30 días)
Pete sherer
Pete sherer el 29 de Oct. de 2021
Respondida: Pete sherer el 1 de Nov. de 2021
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"

Respuesta aceptada

Chris
Chris el 29 de Oct. de 2021

Más respuestas (1)

Pete sherer
Pete sherer el 1 de Nov. de 2021
Thanks very much

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by