[ https://issues.apache.org/jira/browse/MESOS-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985702#comment-14985702 ]
Ian Downes commented on MESOS-1187: ----------------------------------- I'll ask again: why do we use floats and not fixed point? Many resources have an indivisible base unit, e.g., bytes, and for others there's a reasonable, sane limit on divisibility, e.g. for CPU it doesn't make much sense to go finer than milli cpu or even just deci cpu. Floating point is simply not necessary (IIUC) and brings with it a ton of precision issues that we could simply avoid solving! Rather than litter our code with "equality" checks, let's fix the representation... > 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)