Post Reply 
(41) Round To The Nearest 1/n
04-14-2018, 09:03 PM
Post: #6
RE: (41) Round To The Nearest 1/n
(04-14-2018 08:09 PM)Mike (Stgt) Wrote:  \(\pi\), 16, XEQ "RNR" -> 3,125 -- agreed
\(\pi\), -16 (negative!), XEQ "RNR" -> also 3,125 -- positive! even though n is negative. How come?

IMHO that's the correct answer because, of all the infinitely many multiples of 1/(-16), the one nearest to pi is in fact 3.125 ... and rounding x to the nearest multiple of 1/n is the program's stated purpose.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (41) Round To The Nearest 1/n - hth - 04-12-2018, 06:12 PM
RE: (41) Round To The Nearest 1/n - Dieter - 04-12-2018, 06:57 PM



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