Scripts: Asp :: Math functions :: Library Article #15
Developer's Section
Round a Decimal Number Up using ASP (Math.Ceil Function Equivalent) By: Erobo Team Member
|
|||
In this tutorial we will be explaining how to create a Math.Ceil Function using the available functions on ASP.
You can round a number up on classic asp by using a function that computes the integer of itself and adds to that the result of computing the asp Sgn() of the decimal number minus the int value of that number. Thus, the Sgn() function either adds 1 to round it to the next number or returns 0 if it is equal.
|
|||
|
|||
See other Scripts in Math functions |
Submit Your Scripts: |
System Message:
|
If you would like to have your ASP & ASP.NET scripts published in this section please fill out the form below: |