Post Reply 
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
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)/

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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Rounding to the Nearest Reciprocal - Dieter - 12-01-2017 07:57 AM



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