Added object that has integer value to float and double converter.#65
Conversation
Added object that has integer value to float and double converter.
|
Merged. Thank you for your pull request, @redboltz! |
|
This change is not consistent with |
|
Oops, I overlooked the problem. Thank you for pointing, @frsyuki. @redboltz: |
|
I'll revert your commit once. |
|
@oza It sounds good idea to add |
|
I'm trying to implement readNumber() approach. I met a problem. It seems that java.lang.Number doesn't have bigIntegerValue(). java.lang.Long doen't cover msgpack's uint64. I created a class named NumberAccept and that has "value" field. The type of "value" filed is Number. I tried to use NumberValue instead of Number because NumberValue has the method bigIntegerValue(). But NumberValue and java.lang.Long, Integer, ... are sibiling classes. I think that it is a cross-cast problem. Any ideas? |
|
They can call intValue() or longValue() to convert them to int or long. It becomes users' work how to convert Number to integers.
|
Added the conversion from msgpack's int format family to Java's float and double.
See
msgpack/msgpack#163