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

조회 수: 2 (최근 30일)
Dylan Chidodo
Dylan Chidodo 2021년 10월 25일
댓글: Star Strider 2021년 10월 25일
if the input number is 2454152

답변 (1개)

Star Strider
Star Strider 2021년 10월 25일
One approach —
number = 2454152;
Out = rem(number,100)
Out = 52
.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by