How to go one step back on calculator i,e erase one number not whole screen | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to go one step back on calculator i,e erase one number not whole screen

How to erase one digit on calculator dispaly

25th Jul 2022, 8:45 AM
Umer
Umer - avatar
2 Answers
+ 1
How do you store the numbers you want to calculate? If you for example, store them as a string, you can just select the last character of the string and delete it, or make it ""
25th Jul 2022, 9:32 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
0
Thanks for the answer i did that with slice method
27th Jul 2022, 2:49 PM
Umer
Umer - avatar