how to make this kind of round function
1.10 =>1.10
1.11 =>1.10
1.12 =>1.10
1.13 =>1.15
1.14 =>1.15
1.15 =>1.15
1.16 =>1.15
1.17 =>1.15
1.18 =>1.20
1.19=>1.20
1.20 =>1.20

Recommended Answers

If I am in the case, I will probably use round function as suggested by @pritaeas.
After rounding upper half and lower half, I will compare and use it's nearest rounding value.

Jump to Post

All 2 Replies

If I am in the case, I will probably use round function as suggested by @pritaeas.
After rounding upper half and lower half, I will compare and use it's nearest rounding value.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.