Not using a compiler, using a calculator.
Input=250 and you want about 1/4 of that.
250*.2235=55.875
With out using a decimal point!

Yes, I always like the types of Stupid answer's one gets when asking a simple question.

Number is a variable and constantly changing.

As I said for example 250

This is just part of a longer calculation. If it was as simple as just putting a number I really wanted, I think I might of though of that....

I was just looking for the format to input numbers like .00044

thanks

Quote Originally Posted by ronsimpson View Post
Not using a compiler, using a calculator.
Input=250 and you want about 1/4 of that.
250*.2235=55.875
With out using a decimal point!
250*223/1000=55.75 (I did not use 2235/10000)
If the input will fit into a byte and 223 fits into a byte. Then (byte * byte)=word and then word/1000=55.
If you need a input like 350 which is a word and/or you want to use 2235/10000 then you will need to do word*word and word**word to get two words or 32 bits. You might also look at word*/word to get 16 bits out of the middle of the 32 bits.