roughly

Associate
Joined
10 Nov 2007
Posts
809
Location
Southampton
hi

simple question does c++ have a 'roughly' function

e.g if the answer to this sum is roughly 5 then do something

or better yet between function

thanks in advance

PCDave
 
Computers don't do roughly, why not use a floating point number and test it's values using < >?
 
Back
Top Bottom