WIP: Start numeric type for resources

Opening for comments on this approach. Not functional yet.
Making progress isn't just about curtailing the bikeshedding - it's also
about cutting nice-but-not-critical things that have not been implemented.
 This has not been implemented.  Implementing it and testing it will take
time.  If we don't have a strong case for it now AND it is reasonably easy
to add it later, we really should drop it.


On Mon, Sep 8, 2014 at 5:03 PM, johnwilkes <notifications@github.com> wrote:

> In pkg/util/numeric.go:
>
> > +	addSIExponent("mi", -10)
> > +	addSIExponent("", 0)
> > +	addSIExponent("Ki", 10)
> > +	addSIExponent("Mi", 20)
> > +	addSIExponent("Gi", 30)
> > +	addSIExponent("Ti", 40)
> > +	addSIExponent("Pi", 50)
> > +	addSIExponent("Xi", 60)
> > +}
> > +
> > +// Numeric is a fixed-point representation of a number.
> > +// It provides convenient marshaling/unmarshaling in JSON and YAML,
> > +// in addition to String() and Int64() accessors.
> > +// The serialization format is:
> > +//
> > +// <serialized>      ::= <sign><numeric> | <numeric>
>
> I'm all about making fast progress. We've probably spent more time on
> debating this than just doing it. Let's keep it in.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1185/files#r17275374>
> .
>