Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

444c1e9a 5710 5555 6595 e06855139a2f

haplokuon edited this page May 6, 2023 · 1 revision

Sign(Double) Method

netDxf 3.0.0 Library

Returns a value indicating the sign of a double-precision floating-point number.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public static int Sign(
	double number
)

VB

Public Shared Function Sign ( 
	number As Double
) As Integer

C++

public:
static int Sign(
	double number
)

F#

static member Sign : 
        number : float -> int 

Parameters

  Double
Double precision number.

Return Value

Int32
A number that indicates the sign of value. Return value, meaning:
-1 value is less than zero.
0 value is equal to zero.
1 value is greater than zero.

Remarks

This method will test for values of numbers very close to zero.

See Also

Reference

MathHelper Class
Sign Overload
netDxf Namespace

Clone this wiki locally