필터 지우기
필터 지우기

changing a fraction to integer !!

조회 수: 9 (최근 30일)
Ahmed
Ahmed 2013년 2월 10일
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에서 Matrix Indexing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by