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

Double and float values

Does using a double or float value for the MCB1700 board cause severe inefficiency? I would like to use two or three double values for precise calculations of values. Will this cause a problem or will the board run fine?

Parents
  • Does using a double or float value for the MCB1700 board cause severe inefficiency?

    It's impossible to tell unless you specify what "severe inefficiency" means, preferably with numbers.
    My suggestion is to set aside the concerns about inefficiency. Just run your program. If it ends up too slow, start thinking about optimization. Remember, 'Premature optimization is the root of all evil."

Reply
  • Does using a double or float value for the MCB1700 board cause severe inefficiency?

    It's impossible to tell unless you specify what "severe inefficiency" means, preferably with numbers.
    My suggestion is to set aside the concerns about inefficiency. Just run your program. If it ends up too slow, start thinking about optimization. Remember, 'Premature optimization is the root of all evil."

Children
No data