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 – Tests
FUNCTION: CDate( ) Implemented in version 1.0 You can determine the expression subtype by using the function VarType( ). CDate(Date) The CDate function converts any valid date and time expression to the variant of subtype Date. The default date output will be of the format: **/**/** The default time output will be of the format: **:**:** *M…
WSH – WScript
VBScript – Statements
FUNCTION: Atn( ) Implemented in version 1.0 Atn(Number) The Atn function returns the arctangent for a number. Code: <% =Atn(45.0) %> Output: 1.54857776146818 You can also use a negative number. Code: <% =Atn(-45.0) %> Output: -1.54857776146818
OPERATOR: <= Implemented in version 1.0 <= The <= operator determines if the first expression is less-than-or-equal the second expression. Code: <% 123 <= 456 %> <% « a » <= « A » %> Output: True False