MSI Factory 2.3

Math.Round

Math.Round

This is the first topic This is the last topic  

Math.Round

This is the first topic This is the last topic  

OverviewExamples

number Math.Round (

number Num,

number DecimalPlaces = 0 )

Example 1

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.

Example 2

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


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us