msgpack-cli icon indicating copy to clipboard operation
msgpack-cli copied to clipboard

MessagePackObject does not support decimal/float conversion

Open itaign opened this issue 7 years ago • 1 comments

Is there a reason that MessagePackObject does not support AsDecimal/AsFloat conversion like it does for the rest of the value types?

itaign avatar Apr 10 '17 08:04 itaign

Good question.

  1. There is AsSingle instead of AsFloat because float is C# keyword rather than CLS compliant type name.
  2. MessagePackObject represents one of types of native msgpack types (https://github.com/msgpack/msgpack/blob/master/spec.md). decimal is not "native" type of message pack.

yfakariya avatar Apr 10 '17 13:04 yfakariya