cancel
Showing results for 
Search instead for 
Did you mean: 

Round value up to next highest integer

Former Member
0 Kudos

Hi,

I have a formula and I would like the result to round up to the next highest integer. I am currently using the Round function and it of course rounds down until it gets to .5 or higher. Any help would be appreciated. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

something along the lines of:

Round ( {fieldname}+ .499999 )

regards,

dom

Former Member
0 Kudos

Thanks. Simple and effective.

Answers (2)

Answers (2)

Former Member
0 Kudos

or:

If {fieldname} - truncate({fieldname}) <> 0 then 
    truncate({fieldname}) + 1 
else 
    {fieldname}

Former Member
0 Kudos

Hi David,

Place the formula in your report and right click on the field and go in Format FieldSelect Number Tabselect Customize then select Decimal value as 1

Thanks,

Sastry