Doug,

The help is inaccurate.
INT will also accept text.
It would not make sense for NINT to accept different types from INT

Dennis McGrath

________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Doug Hamilton
Sent: Wednesday, May 05, 2010 12:33 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: TEXT TO INTEGER

Bill & Albert - INT  Truncates a number that has a REAL, DOUBLE, or CURRENCY 
data type, returning a value that has an INTEGER data type.
It doesn't convert text which is what the GETPROPERTY returns.
I think.
Doug

Doug Hamilton wrote:

(NINT(arg))

Rounds a number that has a TEXT, REAL, DOUBLE, NUMERIC, or CURRENCY data type 
to the nearest integer, returning a value that has an INTEGER data type.

In the following example, the value of vnint1 is 3 and the value of vnint2 is 4.


SET VAR vnint1 = (NINT(2.6))




SET VAR vnint2 = (NINT(4.4))







Doug

Jim Belisle wrote:
What function do I use to change the text value of a GETPROPERTY command into 
Integer?

Jim

Reply via email to