1.

How Will You Convert A Given Number To Double In Vbscript?

Answer»

Using CDbl function, which converts a GIVEN number of any VARIANT subtype to double.

EXAMPLE:

x = 123
y = 123.882
document.write("x value after converting to double - " & CDbl(x) & "<br />")

Using CDbl function, which converts a given number of any variant subtype to double.

Example:

x = 123
y = 123.882
document.write("x value after converting to double - " & CDbl(x) & "<br />")



Discussion

No Comment Found