Borrar filtros
Borrar filtros

integer from the decimal

7 visualizaciones (últimos 30 días)
john
john el 20 de Mzo. de 2011
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 20 de Mzo. de 2011
fix(3.5)
Other closely related functions include floor(), ceil(), and round()

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by