Rounding to the Nearest Reciprocal
12-01-2017, 07:57 AM (This post was last modified: 12-01-2017 07:58 AM by Dieter.)
Post: #5
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: Rounding to the Nearest Reciprocal
(11-28-2017 05:04 AM)chromos Wrote:
PHP Code:
IP(A)+SIGN(A)*ROUND(FP(ABS(A))*N,0)/N

I do not own a Prime, so this may be a very dumb question, but is there a special reason why this can't be done with a simple ROUND(A*N,0)/N ?

Dieter
 « Next Oldest | Next Newest »

 Messages In This Thread Rounding to the Nearest Reciprocal - Eddie W. Shore - 11-26-2017, 09:10 PM RE: Rounding to the Nearest Reciprocal - chromos - 11-28-2017, 05:04 AM RE: Rounding to the Nearest Reciprocal - salvomic - 11-28-2017, 08:30 AM RE: Rounding to the Nearest Reciprocal - Dieter - 12-01-2017 07:57 AM RE: Rounding to the Nearest Reciprocal - Eddie W. Shore - 11-30-2017, 01:55 PM

User(s) browsing this thread: 1 Guest(s)