decresing decimal point of integer

3 visualizzazioni (ultimi 30 giorni)
Kobi
Kobi il 2 Set 2014
Risposto: José-Luis il 2 Set 2014
how can i do this? i have this number: 1.23484057 and i only need it to be 1.23

Risposta accettata

José-Luis
José-Luis il 2 Set 2014
result = floor(your_num.*100)./100

Più risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by