I'm working with a variable that contains decimal numbers, such as 47.77856 or 203.232354. This variable is GetFreelancersWithWorktime.List.Current.Costs and I'm trying to round these numbers so that the last digit of the decimal part is either a 0 or a 5.

For instance, I'd like to round 47.77856 to 47.80 and 203.232354 to 203.25.

However, these do not produce the desired effect; they round to the nearest whole decimal, resulting in 47.78 and 203.23, respectively.

I'm looking for a technique that would allow me to round numbers so that the final digit after the decimal point is always a 0 or a 5. Any advice on how to achieve this rounding precision would be greatly appreciated.

Hello Community,

I'm working with a variable that contains decimal numbers, such as 47.77856 or 203.232354. This variable is GetFreelancersWithWorktime.List.Current.Costs and I'm trying to round these numbers so that the last digit of the decimal part is either a 0 or a 5.

For instance, I'd like to round 47.77856 to 47.80 and 203.232354 to 203.25.

I've attempted the following methods:

However, these do not produce the desired effect; they round to the nearest whole decimal, resulting in 47.78 and 203.23, respectively.

I'm looking for a technique that would allow me to round numbers so that the final digit after the decimal point is always a 0 or a 5. Any advice on how to achieve this rounding precision would be greatly appreciated.

Thank you for your time and assistance!