11 Dec 2007 at 20:06 #1 PCDave PCDave 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
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
11 Dec 2007 at 20:17 #2 psyr33n psyr33n Associate Joined 5 Mar 2007 Posts 649 Location London "Between function"? Just use greater/less than operators...
11 Dec 2007 at 20:18 #3 RobH RobH Soldato Joined 9 May 2005 Posts 4,530 Location Nottingham Computers don't do roughly, why not use a floating point number and test it's values using < >?