changing a fraction to integer !!

12 views (last 30 days)
Ahmed
Ahmed on 10 Feb 2013
how can i make a fraction number be integer !! stupid question but i really need help, if x =10.1 , i need it 10 and also if it is 10.99 i need it 10 not 11 !! can any one help :) Thx in Advance

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 10 Feb 2013
Edited: Azzi Abdelmalek on 10 Feb 2013
fix(a)
Other rounding function:
help floor
help ceil
help round
  1 Comment
Ahmed
Ahmed on 10 Feb 2013
you are a great man Azzi :), thx for your fast reply Respect from Egypt

Sign in to comment.

More Answers (0)

Categories

Find more on Downloads in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!