View Single Post
  #76   Report Post  
Posted to rec.woodworking
Mike Marlow[_2_] Mike Marlow[_2_] is offline
external usenet poster
 
Posts: 5,710
Default CAD for simple 3-D metal & wood projects?

Bill wrote:


.7 can't be stored exactly as such as a floating point number on a
typical modern computer.
Someone "casted" the number to an integer, losing what what stored as
a fraction.

They used: (int)(average)
when they should have used: (int)(average+.5).

The latter would have rounded.


Wouldn't have had that problem if they had written the program in COBOL!

--

-Mike-