Rounding integers to nearest multiple of 10 [duplicate]
问题 This question already has answers here : Returning the nearest multiple value of a number (6 answers) Closed 4 months ago . I am trying to figure out how to round prices - both ways. For example: Round down 43 becomes 40 143 becomes 140 1433 becomes 1430 Round up 43 becomes 50 143 becomes 150 1433 becomes 1440 I have the situation where I have a price range of say: £143 - £193 of which I want to show as: £140 - £200 as it looks a lot cleaner Any ideas on how I can achieve this? 回答1: I would