Implemented in version 1.0
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).
This first example requires no rounding of the operands and returns '6' ('6.25' truncated).
<% result = 25 \ 4 %>
This next example demonstrates the 'pre-rounding' of the operands; the actual values used for the calculation eqate to '35\6' which returns '5' ('5.833
<% result = 35.4 \ 6.01 %>
Compare the previous example to the next which returns '6' because the first operand has been rounded internally to '36' before calculation.
<% result = 35.9 \ 6.01 %>
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.