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

2 views (last 30 days)
if the input number is 2454152

Answers (1)

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

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!