how to get real quotient in division process?
Mostra commenti meno recenti
i want to divide 230 by 255 and want to get the answer in decimal or real number. when i write 230/255 it gives me rounded answer but i need its actual answer in real number form.
Risposte (1)
Mischa Kim
il 25 Mag 2014
Modificato: Mischa Kim
il 25 Mag 2014
Saima, not quite sure what you mean, but if you need more significant digits for your answers enter
format long
in the command window, or use
vpa(233/255) % typically used for symbolic calculations
3 Commenti
saima zia
il 25 Mag 2014
saima zia
il 25 Mag 2014
Mischa Kim
il 25 Mag 2014
Use something like
num = 233/255;
vpa(num, 3)
fprintf('%6.3f\n', num)
Note that vpa is typically used for symbolic calculations.
Categorie
Scopri di più su Assumptions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!