Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

Fix

The Fix function rounds a floating-point number down to the nearest integer. If the number is positive, then the decimal fraction is truncated no matter how big it is (12.99 becomes 12). If the number is negative, the number is rounded up (-12.99 becomes -12).

In math there is a function called floor that does something similar. The function that behaves exactly like floor is Int. The only differenct between Int and Fix is the way that negative numbers are treated.

Response.Write "Int(12.6) = " & Int(12.6)
Response.Write "Int(-12.6) = " & Int(-12.6)

Orvado, San Diego Web Design

ASP Nuke CMS
Free Open Source
Content Manager
GoSwap Auctions
Buy, Sell
No Fees!

Contact Us | Contribute | About | Site Map



"Never trust a computer you can't throw out a window." - Steve Wozniak

©2012 San Diego Web Design - Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.