integer from the decimal

조회 수: 1 (최근 30일)
john
john 2011년 3월 20일
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일
fix(3.5)
Other closely related functions include floor(), ceil(), and round()

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by