changing a fraction to integer !!

15 次查看(过去 30 天)
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

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-2-10
编辑:Azzi Abdelmalek 2013-2-10
fix(a)
Other rounding function:
help floor
help ceil
help round
  1 个评论
Ahmed
Ahmed 2013-2-10
you are a great man Azzi :), thx for your fast reply Respect from Egypt

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by