CrystalClear Syntax

Operator "%"


This operation divides the first operand by the second operand and multiplies the result by 100, thereby effectively calculating the ratio of the first to the second value in percent.

Usage:

number % number		// Returns number
currency % number		// Returns currency
currency % currency	// Returns number

Returns:

depends on operand value types

Examples (Same in Basic and Crystal syntax):

8.4 % 50		// Returns 16.8
1 % 2		// Returns 50
$8.40 / 10	// Returns 84
$42 / $21		// Returns 200

See also:


i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to crystalclear@inetsoftware.de.

This page is: very poor very good
Comment: