# Rounding in 4GL

In a message dated 7/14/2005 1:01:08 PM Central Daylight Time,
jeff@... writes:
( (credit-limit * 1.1) / 10
Thanks
Worked Perfect,
Jeremy

[Non-text portions of this message have been removed]
Hello,
I am not very good with 4gl. Can anyone tell me how to round my result to
the nearest
whole number?

NewLen = (NewQtyPer / (curBilletMultiplyer * CurBilletSpecificGravity))

Thanks
Jeremy

[Non-text portions of this message have been removed]
Jeremy,
Like this if your using 4GL in the procedure editor...

Round a decimal expression to a specified number of places after the
decimal point.
SYNTAX
ROUND ( expression , precision )
A non-negative integer expression whose value is the number of places
you want in the decimal result of the ROUND function.

EXAMPLE
This procedure increases all credit-limit values by 10 percent, rounding
those values to the nearest \$100.

r-round.p

FOR EACH customer:
DISPLAY cust-num name credit-limit.
credit-limit = ROUND( (credit-limit * 1.1) / 100 ,0) * 100.
PAUSE.
DISPLAY credit-limit.
END.

TRUNCATE Function

Jeff

________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of jeremyrleonard@...
Sent: Thursday, July 14, 2005 12:54 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Rounding in 4GL

Hello,
I am not very good with 4gl. Can anyone tell me how to round my result
to
the nearest
whole number?

NewLen = (NewQtyPer / (curBilletMultiplyer * CurBilletSpecificGravity))

Thanks
Jeremy

[Non-text portions of this message have been removed]
NewLen = round((NewQtyPer / (curBilletMultiplyer *
CurBilletSpecificGravity)),0)

----- Original Message -----
From: <jeremyrleonard@...>
To: <vantage@yahoogroups.com>
Sent: Thursday, July 14, 2005 10:54 AM
Subject: [Vantage] Rounding in 4GL

> Hello,
> I am not very good with 4gl. Can anyone tell me how to round my result to
> the nearest
> whole number?
>
> NewLen = (NewQtyPer / (curBilletMultiplyer * CurBilletSpecificGravity))
>
> Thanks
> Jeremy
>
>
> [Non-text portions of this message have been removed]
>
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> (1) To access the Files Section of our Yahoo!Group for Report Builder and
> Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto: