Aug 19, 2015 #1 axLW Programmer Feb 6, 2015 110 GB Can somebody please tell me the best way to round up a number like so: 79 > 80 42 > 45 31 > 35 146 > 150 etc My numeric value is held in a variable called MyVar. Thanks
Can somebody please tell me the best way to round up a number like so: 79 > 80 42 > 45 31 > 35 146 > 150 etc My numeric value is held in a variable called MyVar. Thanks
Aug 19, 2015 1 #2 xwb Programmer Jul 11, 2002 6,828 GB Try Code: x = ((x - 1) \ 5 + 1) * 5 Upvote 0 Downvote
Aug 19, 2015 Thread starter #3 axLW Programmer Feb 6, 2015 110 GB Yes that works. Thank you very much. Upvote 0 Downvote