[rhinstaller/blivet/pulls/217 master] Master format free space

vpodzime installerbot-noreply at redhat.com
Fri Sep 11 08:03:32 UTC 2015


> @jkonecny12 Can you please do a followup that removes the float stuff from blivet.size.Size and instead uses decimal.Decimal for the factors in blivet.formats.fs?

What would be the benefit of this? I know ``Decimal`` intentionally doesn't implement those mathematical operations with ``float``s because they result in a lost of precision, but is ``Size`` really the same case? We convert everything to whole bytes anyway so what's the point in enforcing those "infinite precision" rules? Could be I'm missing something here, so let me know. It would be a great help for me for thinking about the *GLib* implementation of ``Size``.
-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/217


More information about the anaconda-patches mailing list