integer from the decimal
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 20 Mär. 2011
fix(3.5)
Other closely related functions include floor(), ceil(), and round()
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!