TSP (libtsp/MS) - MSdNint

## MSdNint

#### Routine

double MSdNint (double x)

#### Purpose

Nearest integer function

#### Description

This routine returns the integer-valued double nearest x. Specifically, the returned value is floor(x+0.5) for positive x and ceil(x-0.5) for negative x.

#### Parameters

<- double MSdNint
  Returned integer value
-> double x
  Input value

#### Author / revision

P. Kabal Copyright (C) 1994 / Revision 1.5 1994/03/30

Main Index libtsp