WIP: Start numeric type for resources

Opening for comments on this approach. Not functional yet.
I agreed to no exponent to get the first draft of the resource.md file
submitted.  But then I thought about it, and had qualms.  Given that it's a
trivial extension here, I'd like to get it back.


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

> In pkg/util/numeric.go:
>
> > +	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>
> > +// <numeric>         ::= <digits><exponent> | <digits>.<digits><exponent>
> > +// <sign>            ::= "+" | "-"
> > +// <digits>          ::= 0 | 1 | ... | 9
> > +// <exponent>        ::= <binaryExponent> | <decimalExponent>
> > +// <decimalExponent> ::= "e" <digits>
>
> I thought we agreed to not have E? John? It's not a huge deal if we accept
> float-style values everywhere, I guess.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1185/files#r17194368>
> .
>