vbscript-divide
OPERATOR: /
Implemented in version 1.0
/
The / operator divides two numbers and returns a floating-point number.
Code:
<% result = 25.0 / 4.975 %>
Output:
5.0251256281407
Code:
<% result = 25 / 5 %>
Output:
5
OPERATOR: /
Implemented in version 1.0
/
The / operator divides two numbers and returns a floating-point number.
Code:
<% result = 25.0 / 4.975 %>
Output:
5.0251256281407
Code:
<% result = 25 / 5 %>
Output:
5
VBScript – Math
OPERATOR: And Implemented in version 1.0 And The And operator is used to perform a logical conjunction on two expressions, where the expressions are Null, or are of Boolean subtype and have a value of True orFalse. The And operator can also be used a « bitwise operator » to make a bit-by-bit comparison of two integers….
FUNCTION: CCur( ) Implemented in version 1.0 You can determine the expression subtype by using the function VarType( ). CCur(Number) The CCur function converts any number or numeric string to the variant of subtypeCurrency. Converts to currency values ranging from -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Code: <% anynumber=(12345) %> <% =CCur(any_number) %> Output: 12345 Code: <% any_numeric_string=(« 98765 ») %> <% =CCur(any_numeric_string)…
WSH – WshShell
WSH/FSO – Fichiers
STATEMENT: ‘ Implemented in version 1.0 ‘ The ‘ statement allows you to insert comments into your code. Code: <% ‘ This is one of two ways to comment in VBScript %> <% Rem This is the other way %>