NINT

Platform

x64, Win32, .NET

Purpose

To get the nearest integer to a given real value.

Class

Elemental function.

Syntax

INTEGER FUNCTION NINT(A [, KIND])
REAL A
INTEGER KIND

Description

If KIND is present it gives the kind type of the integer result, otherwise the result is of default integer type.

Return value

The result is obtained by rounding off the given real value to the nearest integer. If A > 0, NINT(A) has the value INT(A + 0.5); if A < 0, NINT(A) has the value INT(A � 0.5).

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited