Shop OBEX P1 Docs P2 Docs Learn Events
10 BIT percentage — Parallax Forums

10 BIT percentage

ArchiverArchiver Posts: 46,084
edited 2003-05-29 17:24 in General Discussion
Hi Everyone.

How can I find a percentage from a 10 bit AD value?
My values are as follow:
value1 = 3
value2 = 256

My formula is as follow:
(((value1*256)+(value2))*100) / 1024

102400/1024 = 100

This does not work because 102400 is greater the 65000.

Thank you,

-M

Comments

Sign In or Register to comment.