SQL PHP HTML ASP JavaScript articles and free scripts to download
ASP > Math Functions

ASP round function to format decimal place in ASP

Round function is used to round of a number and format the number as per requirment.

Round(5.768) will return 6
Round(5.368) will return 5
Round(0.768) will return 1
Round(-3.368) will return -3

We can format a number as per requirement of decimal place. For example we want the number should display two decimal places only.

Round(5.768,2) will return 5.77

The above line is rounded off to two decimal place.

Be the first to post comment on this article :


Further readings
Round function to format decimal place in a number
Math functions INT
Random Number generator using Random function
Percentage value by using FormatPerecnt function
Post Comment This is for short comments only. Use the forum for more discussions.
Email( not to be displayed)Privacy Policy

HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2015 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer