MindFusion.Reporting for Silverlight Programmer's Guide
Sgn

Indicates the sign of a number.

Syntax

 Copy Code

double Sgn (
    double value
)

Parameters

value
A numeric expression.

Return Value

The function has the following possible return values:

Parameter Value

Return Value

Greater than zero

1

Equal to zero

0

Less than zero

-1

If value cannot be evaluated to a number or is null, the function returns 0.

Remarks

The sign of the value parameter determines the return value of the Sgn function.

See Also

Math Functions
Abs Function
Str Function