{"action":"closed","issue":{"url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/520","labels_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/520/comments","events_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/520/events","html_url":"https://github.com/Atlantic18/DoctrineExtensions/issues/520","id":8455470,"number":520,"title":"Loggable Behaviour; Content of float property gets changed","user":{"login":"peterrehm","id":2010989,"avatar_url":"https://avatars.githubusercontent.com/u/2010989?v=3","gravatar_id":"","url":"https://api.github.com/users/peterrehm","html_url":"https://github.com/peterrehm","followers_url":"https://api.github.com/users/peterrehm/followers","following_url":"https://api.github.com/users/peterrehm/following{/other_user}","gists_url":"https://api.github.com/users/peterrehm/gists{/gist_id}","starred_url":"https://api.github.com/users/peterrehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterrehm/subscriptions","organizations_url":"https://api.github.com/users/peterrehm/orgs","repos_url":"https://api.github.com/users/peterrehm/repos","events_url":"https://api.github.com/users/peterrehm/events{/privacy}","received_events_url":"https://api.github.com/users/peterrehm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2012-11-18T22:57:02Z","updated_at":"2015-10-12T10:06:27Z","closed_at":"2015-10-12T10:06:27Z","body":"I am using Loggable/Versioned on an entity to log calculated margins.\nSomehow the log entry differs from the actual entry in the database.\n\nLog Entry:\na:1:{s:16:\"calculatedMargin\";d:1.7857149999999999;}\n\nActual Database entry:\n1.785715\n\nThe strange thing is this occurs only on some values. I am using round(xxx, 6) in \nthe setter of the affected property.\n\n    public function setCalculatedMargin($calculatedMargin)\n    {\n        $this->calculatedMargin = round($calculatedMargin,6);\n    }\n\nThank you in advance for your help!\n"}}