WIP: Start numeric type for resources

Opening for comments on this approach. Not functional yet.
"i" and "mi" are going away: pow-2 scalars aren't defined for less than 1.


On Fri, Sep 5, 2014 at 1:07 PM, Tim Hockin <notifications@github.com> wrote:

> In pkg/util/numeric.go:
>
> > +	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>
> > +// <numeric>         ::= <digits><exponent> | <digits>.<digits><exponent>
> > +// <sign>            ::= "+" | "-"
> > +// <digits>          ::= 0 | 1 | ... | 9
> > +// <exponent>        ::= <binaryExponent> | <decimalExponent>
> > +// <decimalExponent> ::= "e" <digits>
> > +//   (Where digits is always a multiple of 3)
> > +// <binaryExponent>  ::= mi | i | Ki | Mi | Gi | Ti | Pi | Xi
>
> What is "i" ?
>
> Do we really need pow-2 scalars less than 0?
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1185/files#r17194529>
> .
>