Demon
- 25th August 2024, 03:12
I have a variable with a range from 000 to 990.
How can I identify specific numbers like:
x20
x45
x70
x95
x can be from 0 to 9
I don't see a quick and simple way of doing this.
Demon
- 25th August 2024, 03:21
SOLVED: Confirmed
COM_KHz_Remainder = COM_KHz_Counter // 100
(it's been a while since I've coded and it shows - obvious things don't jump out at me any more :( )
I think Melanie is showing me the way:
https://www.picbasic.co.uk/forum/showthread.php/1947-Decimals-and-Digits-and-Division-Oh-My!?p=9768#post9768
divide by 100
keep the remainder
My mind is mush, I have to test it to be sure.
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.