This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

gerneric open source times and div code in source

were looking for open source code for time and divisn of numbers like 2 x 3 and 3 / 7

it must be code in source and with proper comments ending in ;

we cant find any.

Parents
  • "3 / 7"

    Exactly what result is the above expected to give? That is a critical issue when looking for code to perform division.

    Should it produce a floating point answer?

    Should it produce a fixed point answer?

    Integer quotient?

    Integer quotient with remainder?

    Something else?

    And is there any special needs to the maximum size of supported numbers?

    Any special needs for precision?

    Prioritize speed or code size or data size?

    Or is the only real requirement source code with proper comments ending with ";"?

Reply
  • "3 / 7"

    Exactly what result is the above expected to give? That is a critical issue when looking for code to perform division.

    Should it produce a floating point answer?

    Should it produce a fixed point answer?

    Integer quotient?

    Integer quotient with remainder?

    Something else?

    And is there any special needs to the maximum size of supported numbers?

    Any special needs for precision?

    Prioritize speed or code size or data size?

    Or is the only real requirement source code with proper comments ending with ";"?

Children
No data