Post Reply 
Floor & Ceil (RPN-67 vs Excel)
05-24-2024, 08:47 PM (This post was last modified: 05-24-2024 08:57 PM by stilmant.)
Post: #8
RE: Floor & Ceil (RPN-67 vs Excel)
Hi Again,

What I'm wondering is if you may have used the Round-Toward-Zero algorithm while you were expecting Round-Floor results. Microsoft Excel was designed around the IEEE 754 specification for storing and calculating floating-point numbers. This standard proposes multiple ways of rounding:Directed roundings Could it be that this is why Excel includes multiple modes in the same floor function?

Thomas was warning exactly about that in his comment.

Here's a nice summary of different rounding algorithms, which might help answer your original question ("why would there be a difference?"):
[Image: maxncb-0037-summary-of-rounding-algorithms-1024x661.png]

Edit: Source of the Pic + add Thomas Okken credit.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Floor & Ceil (RPN-67 vs Excel) - dm319 - 05-24-2024, 10:40 AM
RE: Floor & Ceil (RPN-67 vs Excel) - dm319 - 05-24-2024, 07:45 PM
RE: Floor & Ceil (RPN-67 vs Excel) - stilmant - 05-24-2024 08:47 PM



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