Rounding a number to nearest 5 or 0
Andrew Stolarz
stolarz at gmail.com
Mon May 4 15:22:39 UTC 2026
This seems to do the trick.
Calculate lv_Rounded as int((lv_Number+2.5)/5)*5
On Sat, May 2, 2026 at 11:07 AM Andy Hilton via omnisdev-en <
omnisdev-en at lists.omnis-dev.com> wrote:
> All
>
> Having a rnd() brain fade day :)
>
> If I want to round a number to the nearest 5 (i.e. 5 or 0) is there any
> easy one line way to do this ?
>
> Must be a Kelly special surely….
>
> Andy Hilton
> Totally Brilliant Software Inc
> Phone (US) : (863) 409 4870
> Web : www.totallybrilliant.com
> Helpdesk : https://totallybrilliantsoftware.supportsystem.com/
> Email : andyh at totallybrilliant.com
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
More information about the omnisdev-en
mailing list