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 Reply Children
  • "it must be code in source and with proper comments ending in ;"

    Exactly why must the comments end in ";"?

    That would basically mean that I have probably never written a proper comment in my whole life...

    Now, why do your request sound so extremely much like a school assignment?

  • "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 ";"?