OverviewExamples
rounded = Math.Round(3.1415926535, 2);
This example rounds the number "3.1415926535" to two decimal places and stores the result in the variable "rounded". In this case, rounded will equal 3.14.
number1 = 234;
number2 = 567;
answer = Math.Round(number1/number2, 4);
Divides two numbers, and calculates the answer, rounded to four decimal places.
See also: Related Actions