10 BIT percentage
Archiver
Posts: 46,084
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
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
(value1*25) + (value2*25/256)
(3*25) + (256*25/256)
75 + 25 = 100
Mensaje original
De: mdbware2000 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=brNScZ8sL3TP4DmvSuTxG_0xBLYQ3yc-xcR49faqTjAwff9FjJ3eVv17mVIrCc2MuNgIcyQXoIsps8ABtg]mdbware@h...[/url
Enviado el: jueves, 29 de mayo de 2003 4:43
Para: basicstamps@yahoogroups.com
Asunto: [noparse][[/noparse]basicstamps] 10 BIT percentage
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
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
-M
--- In basicstamps@yahoogroups.com, "Luis" <lullamas@y...> wrote:
> Try with
>
> (value1*25) + (value2*25/256)
>
>
> (3*25) + (256*25/256)
>
> 75 + 25 = 100
>
>
>
Mensaje original
> De: mdbware2000 [noparse][[/noparse]mailto:mdbware@h...]
> Enviado el: jueves, 29 de mayo de 2003 4:43
> Para: basicstamps@yahoogroups.com
> Asunto: [noparse][[/noparse]basicstamps] 10 BIT percentage
>
>
> 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
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/