NINT: convert to nearest integer (F)
⇒Home
⇒Contents
⇒more on Programming
⇒ Example of a NINT call in "Loops/Nested" (RosettaCode)
result = NINT( argument )
result is the nearest integer value to argument
x = NINT( 3.1415 )
! returns 3
y = NINT( 2.71828 )
! returns 3
z = NINT( -0.9 )
! returns -1
see also
⇒ INT
,
⇒ FLOOR
,
⇒ CEILING
How your donation will be used, and how to get a HicEst key code in return
©2000-2010 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.
Impressum