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

bc3fb67e c136 7335 0162 8d72043b61b5

haplokuon edited this page May 6, 2023 · 1 revision

RoundToNearest Method

netDxf 3.0.0 Library

Round off a numeric value to the nearest of another value.

Definition

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

C#

public static double RoundToNearest(
	double number,
	double roundTo
)

VB

Public Shared Function RoundToNearest ( 
	number As Double,
	roundTo As Double
) As Double

C++

public:
static double RoundToNearest(
	double number, 
	double roundTo
)

F#

static member RoundToNearest : 
        number : float * 
        roundTo : float -> float 

Parameters

  Double
Number to round off.
  Double
The number will be rounded to the nearest of this value.

Return Value

Double
The number rounded to the nearest value.

See Also

Reference

MathHelper Class
netDxf Namespace

Clone this wiki locally