Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript Int function


May 13, 2021 VBScript


Table of contents


VBScript Int function

The VBScript Int function returns the integer portion of a number.


VBScript Int function Complete VBScript reference manual

The Int function returns the integer portion of the specified number.

Note: If the number parameter contains Null, Null is returned.

Tip: See Fix function.

Grammar

Int(number)

Parameters

parameter describe
number Required.Effective numerical expression.

Instance 1

<script type="text/vbscript">

document.write(Int(6.83227) & "<br />")
document.write(Int(6.23443))

</script>

The above example output results:

6
6

Try it out . . .

Instance 2

<script type="text/vbscript">

document.write(Int(-6.13443) & "<br />")
document.write(Int(-6.93443))

</script>

The above example output results:

-7
-7

Try it out . . .

VBScript Int function Complete VBScript reference manual

Related articles

VBScript Fix function