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

504d8b21 af94 7a5b 80a0 34f390c0dfd7

haplokuon edited this page May 6, 2023 · 1 revision

Sign(Double, 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,
	double threshold
)

VB

Public Shared Function Sign ( 
	number As Double,
	threshold As Double
) As Integer

C++

public:
static int Sign(
	double number, 
	double threshold
)

F#

static member Sign : 
        number : float * 
        threshold : float -> int 

Parameters

  Double
Double precision number.
  Double
Tolerance.

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