Shop OBEX P1 Docs P2 Docs Learn Events
32bit multiplication — Parallax Forums

32bit multiplication

ArchiverArchiver Posts: 46,084
edited 2003-05-09 21:04 in General Discussion
Hi,

I need to multiply two unsigned 16bit values and get a 32bit result.
This is actually for the Javelin, but there is not much reponse there.
As the javeln lacks the ** operator, I only have the integer multiply,
integer division and mod operator at my disposal.

Can someone point out how to calculate this 32bit value?
Thanks.

Regards peter

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-05-09 21:04
    Peter,

    On this site:

    http://www.parallax.com/javelin/applications.asp

    See:

    AN011 - 32-bit Integer Math for the Javelin

    Regards, Andy

    --- In basicstamps@yahoogroups.com, "peter verkaik"
    <peterverkaik@b...> wrote:
    > Hi,
    >
    > I need to multiply two unsigned 16bit values and get a 32bit result.
    > This is actually for the Javelin, but there is not much reponse
    there.
    > As the javeln lacks the ** operator, I only have the integer
    multiply,
    > integer division and mod operator at my disposal.
    >
    > Can someone point out how to calculate this 32bit value?
    > Thanks.
    >
    > Regards peter
Sign In or Register to comment.