| MATLAB Central > MATLAB Newsreader > how to round to 2 decimal? |
|
|
|
hey, how can I set my matlab program to round all the |
|
"Deo " <spliers@hotmail.com> wrote in message |
|
Subject: how to round to 2 decimal? From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) Date: 5 Mar, 2008 00:26:27 Message: 3 of 12 |
|
In article <fqkn97$hnn$1@fred.mathworks.com>, Dan Haeg <haegd@msoe.edu> wrote: |
|
roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in |
|
"nor ki": |
|
Subject: how to round to 2 decimal? From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) Date: 5 Mar, 2008 17:36:28 Message: 6 of 12 |
|
In article <fqllih$doa$1@fred.mathworks.com>, |
|
"Deo " <spliers@hotmail.com> wrote in message |
|
Subject: how to round to 2 decimal? From: Omar U. Florez Date: 28 Jun, 2008 22:09:01 Message: 8 of 12 |
|
sprintf('%g',round(-sorted_values(j)*100)/100) |
|
On Jun 28, 6:09=A0pm, "Omar U. Florez" <omarflore...@gmail.com> wrote: |
|
zia: |
|
Subject: how to round to 2 decimal? From: Nasser Abbasi Date: 29 Jun, 2008 09:21:55 Message: 11 of 12 |
|
|
|
Ich chose sprintf('%.3g', pi) |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| precision | carlos lopez | 5 Mar, 2008 18:30:21 |
| sprintf | us | 5 Mar, 2008 05:00:36 |
| str2num | us | 5 Mar, 2008 05:00:35 |
| floating point | us | 5 Mar, 2008 05:00:35 |
| fp | us | 5 Mar, 2008 05:00:35 |
| code | us | 5 Mar, 2008 05:00:35 |
Contact us at files@mathworks.com
