Doing 13000 + 623.4
is same as doing
13000*10 + 623.4*10
=136234
when you want to recover it, simply divide by 10 to get the result
=13623.4
You have to make sure to live within the integer limits of PBP unless you are using the long version PBPL.
Doing 13000 + 623.4
is same as doing
13000*10 + 623.4*10
=136234
when you want to recover it, simply divide by 10 to get the result
=13623.4
You have to make sure to live within the integer limits of PBP unless you are using the long version PBPL.
I can live with the integer limits of PBP.
I can not use PBPL because i use pic16f88.
Hi, Savnik
Is your decimal number a constant ??? ... and could you tell us where it comes from.
as
and ALSO the same as ...The decimal 622,784 is from division 38,924/0,0625
38,924 * 16 !!!
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Yes it is a constant number.
is from : 28,224+10,7 = 38,924 and the 0,0625 is the step
Last edited by savnik; - 18th August 2009 at 15:39.
Bookmarks