RE: Generating Modulo and Remainder Operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rohit,

> is there an "C" statement to generate Remainder operation.

Yes, you can use the Standard C Library routine modf (and it's companions modfl and modff).

Alternatively, for integers you can use the % operator with unsigned numbers.  (If you need to work with signed numbers, convert the signed numbers to unsigned numbers and adjust the result's sign accordingly.)

Sincerely,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux