integer from the decimal

Hello to everyone,
I want to take the integer part of a decimal number.For example, from the number 3.5 I want to get the 3.Does anybody know if there is a function to do this?
Thanks

 채택된 답변

Walter Roberson
Walter Roberson 2011년 3월 20일

0 개 추천

fix(3.5)
Other closely related functions include floor(), ceil(), and round()

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2011년 3월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by