integer from the decimal

2 次查看(过去 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