[ 
https://issues.apache.org/jira/browse/MESOS-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14739120#comment-14739120
 ] 

Felix Abecassis commented on MESOS-1187:
----------------------------------------

You are right that it can get extremely complex. We are not doing scientific 
computing here so I don't think we need to go to such depths as computing ULPs 
and handling subnormals :).

I think a simple relative epsilon comparison will do the trick just fine.
For instance function AlmostEqualRelative in:
https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/


> precision errors with allocation calculations
> ---------------------------------------------
>
>                 Key: MESOS-1187
>                 URL: https://issues.apache.org/jira/browse/MESOS-1187
>             Project: Mesos
>          Issue Type: Bug
>          Components: allocation, master
>            Reporter: aniruddha sathaye
>            Assignee: Klaus Ma
>
> As allocations are stored/transmitted as doubles many a times precision 
> errors creep in. 
> we have seen erroneous share calculations happen only because of floating 
> point arithmetic. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to