Re: Summation, modulo and decimal



> Yikes. What is it you are doing, explicitly?

>The easiest way to do what you want, if what I think you want is
>indeed what you want, is to simply multiply both numbers by 10^6, do
>the modulus, and then divide the result by 10^6. That is, do 147536
>mod 101110, which is 46426; then divide the result by 10^6 to get
>0.046426

Given a number n (real, periodic or not), say, 23.38276345 I want to
"transform" the value to 01.10010111 . The question isn´t to convert
to a binary value or change the base. So I used the (n mod 2) to get
the 0´s and 1´s and then shift to left one digit (multiply by 10).
The "mechanic" of it using Summation that is trapping me. I have not
found a way to shift the number to left while keeping the old value or
just to let it go to the left k places and then get back k places to
the right again without changing the inicial value n.

.



Relevant Pages

  • Re: email verification
    ... Thanks eitherway! ... Rogier. ... Prev by Date: ...
    (comp.mail.misc)
  • Re: Bernie back 1 year 2 mil
    ... Going to camp with Felix Escalona as the top choice for backup ... Yikes! ... Prev by Date: ...
    (alt.sports.baseball.ny-yankees)
  • Re: TA DA! (New Bracelet and some other ramblings)
    ... And can you imagine Linda Harmeyer's response, ... YIKES ... Prev by Date: ...
    (rec.crafts.beads)
  • Re: WB Looney Box 3?
    ... Yikes! ... >Kip Williams wrote: ... >Derek Janssen (and it was worth waiting two months since the original ... Prev by Date: ...
    (rec.arts.animation)
  • Re: VB shift operator >>
    ... All that code to replace what should be 1 cpu instruction!! ... MicroDexterity Inc ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)