Int function in ASP Classic (cint vs fix)

If you are looking for a function ASP Classic (VBScript) to do what Int() does since Int is not found in ASP
You can use Fix()

CodeFunctionName
What is this?

Public

Tested

Original Work
Function Int(Nume)
    Int = fix(Nume)
End Function
' do not use cint in ASP Classic
' instead use fix
'
' cint( 4 / 5 ) = 1
' fix( 4 / 5 ) = 0
'
' fix() is like int(), cint is rounding and will not help here

Nume

Views 112

Downloads 51

CodeID
DB ID

ANmarAmdeen
610
Attachments
Revisions

v1.0

Tuesday
February
6
2024