function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Decimal num1 = 12.4; System.debug(num1.round(System.RoundingMode.HALF_UP)) ; // Output : 12 Decimal num2 = 12.5; System.debug(num2.round(System.RoundingMode.HALF_UP)) ; // Output : 13 Decimal num3 = 12.6; System.debug(num3.round(System.RoundingMode.HALF_UP)) ; // Output : 13
You can use the following :
I hope this solves your issue. If yes, please mark this as the best answer.
Regards
Deepak