Commit ec4c6370 authored by Jonathan Jenkins's avatar Jonathan Jenkins

floating point best practices

parent 2e7b25cc
......@@ -419,6 +419,14 @@ reverse handler only needs to reverse as single event, in order)
\item how to handle queues
\subsection{Working with floating-point data}
Floating point variables are particularly tricky to use in optimistic
simulations, as rounding errors prevent rolling back to a consistent state by
merely performing the inverse operations (e.g., $a+b-b \neq a$). Hence, it is
instead preferable to simply store the local floating-point state in the event
structure and perform assignment on rollback.
\subsection{How to complete a simulation}
TODO: fill this in. Most core ROSS examples are design to intentionally hit
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment