Clear Filters
Clear Filters

precision

3 views (last 30 days)
maha sandhya
maha sandhya on 13 Mar 2012
plz tell how to reduce precision(decimal) in matlab
  1 Comment
James Tursa
James Tursa on 13 Mar 2012
Your question is too vague. Please provide more detail, with an example.

Sign in to comment.

Answers (1)

Jan
Jan on 13 Mar 2012
a = pi; % Now [a] is a double using about 16 digits.
b = single(a); % [b] is a single with about 8 digits.

Tags

Community Treasure Hunt

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

Start Hunting!