What is the best way to avoid truncation and rounding errors? I'm attempting to implement some math subprograms like finding the volume of a sphere, which takes a (4/3)PI(Rcubed) formula, but the (4/3) will obviously round down to 1.00 rather than the 1.33 I need, destroying my formula. Any advice? Thanks
Another part of the program has me also taking an array of float values, sorting them into ascending order, and displaying them along with their sum, however this same truncation/rounding error causes me some problems here too, because many of the float values are decimal which are not being representing on output.