Hey all,

    This may or may not be a newbie question, but I'm hoping there is a
solution out there that I just don't know about.

I'm making a page that has to round some numbers up and some numbers down
depending on the integer. Let me give you an example:

If I have a number say 48.49.  This number, because the 8 is even, is
rounded down to 48.0 If the number was 48.51, it would be rounded up to 49.0

However if the number was 49.49, it would be rounded down to 49.0, but if it
was 49.50-49.99, the number would be rounded to 50. Thus because the 9 is
odd, it has a different rounding pattern that the even numbers.

In VB the code has a function called CInt(number)

CInt(48.49) = 48

CInt(48.50) = 48

CInt(48.51) = 49

CInt(49.49) = 49

CInt(49.50) = 50

CInt(49.51) = 50



A more detailed explanation is at http://www.avdf.com/apr98/art_vb003.html

I want to convert it to CF but haven't found a function or a tag that is
similar to CInt.    Is there one out there?

Thanks in advance

Seth
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to