how can i extract the last two digits of a big number e.g 2454152

2 visualizaciones (últimos 30 días)
Dylan Chidodo
Dylan Chidodo el 25 de Oct. de 2021
Comentada: Star Strider el 25 de Oct. de 2021
if the input number is 2454152

Respuestas (1)

Star Strider
Star Strider el 25 de Oct. de 2021
One approach —
number = 2454152;
Out = rem(number,100)
Out = 52
.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by