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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.