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
WSH – WScript
VBScript – Web
VBScript – Chaînes
VBScript – Statements
OPERATOR: <> Implemented in version 1.0 <> The <> operator is called the not equal or inequality operator. Code: <% If 128 <> 777 Then Response.Write(« Not equal ») End If %> Output: Not equal
OPERATOR: \ Implemented in version 1.0 \ The \ operator divides two numbers and returns an integer (fixed-point). Each number can be either floating-point or fixed-point. This operator works by rounding the values of the supplied operands to integers (if necessary) before performing the calculation and only returns an integer with no decimal representation (truncated)….