1.

How Will You Get The Integer Part Of A Number In Vbscript?

Answer»

Using INT function, which returns the integer part of the GIVEN number.

Example:

DIM num : num = -645.998651<BR>document.write("int RESULT of num is : " & int(num))& "<br/>" '-646

Using Int function, which returns the integer part of the given number.

Example:

Dim num : num = -645.998651
document.write("int Result of num is : " & int(num))& "<br/>" '-646



Discussion

No Comment Found