Rounding sort of ....

Robert Repko rtr at rsquared.com
Thu Mar 8 14:19:12 PST 2018


Add .5 and take the integer of the result (n = INT(n))

-----Original Message-----
From: Filepro-list [mailto:filepro-list-bounces+rtr=rsquared.com at lists.celestial.com] On Behalf Of Wayne Smith via Filepro-list
Sent: Tuesday, March 06, 2018 6:48 PM
To: filePro Mailing List <filepro-list at lists.celestial.com>
Subject: Rounding sort of ....

I have a client that wants to take a whole 10,.2 number and if the cents are ge .51 add a 1.00 to the total calculation.

if the cents are le .50  then take away cents and leave whole numbers.

I have tried some simple things ....in input.prc with no luck ...the list is very slow ....one of you brains out there must know a simple math trick in fp to solve this ....thanks ahead of time.

Windows 10,  FP 5.8

--
Wayne Smith
Port Orange, Florida
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20180306/0cd2796d/attachment.html>
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes http://mailman.celestial.com/mailman/listinfo/filepro-list


More information about the Filepro-list mailing list