Announcement

Collapse
No announcement yet.

Is ther a way to multipy an unsigned 32 bit number by 1000 ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is ther a way to multipy an unsigned 32 bit number by 1000 ?

    Is there a way to multiply an unsigned 32 bit number by 1000 ? or multiply two 32 bit numbers ,

    With the integer functions I can add, sub and div 32 bit variables and multiply 2 x16 bit to a 32 bit but not 2 x 32 bit.

    Cheers

    Garry



  • #2
    Hi Garry,

    Unfofrunately no. You best optin maybe is to use the flt commands but they are floating point and may not give you the result you want.

    eg.

    flt_VAL(fl1,"6535");
    flt_VAL(fl2,"100");
    flt_MUL(fl3, fl1, fl2);
    flt_PRINT(fl3, 0);

    Best regards

    Paul

    Comment

    Working...
    X