positive and negative numbers are sent as unsigned or signed numbers
See original GitHub issue@grs ,
I am trying to write a receiver using AmqpNetLite. It works fine for string, bool values. However it is giving me trouble with numbers.
When I am sending positive numbers, they are marked as uint
{ test: 1}
When I am sending negative numbers, they are marked as int
{ test: -1.1 }
Special case, when I am sending 1.0
, it is being converted to either uint
or int
depending on above cases but in either case, it is sent as 1
instead of 1.0
{ test: 1.0 }
Is this intended or is there any other generic way to send all the values as signed variables? and not convert double to int?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
2.5 Signed and Unsigned Numbers - Introduction to Digital ...
Unsigned binary numbers are, by definition, positive numbers and thus do not require an arithmetic sign. An m-bit unsigned number represents all numbers...
Read more >Signed Binary Numbers and Two's Complement Numbers
In mathematics, positive numbers (including zero) are represented as unsigned numbers. That is we do not put the +ve sign in front of...
Read more >Signed vs Unsigned - Scaler Topics
An unsigned number contains just zero or positive values, whereas a signed number has both positive and negative numbers along with the value ......
Read more >Signed and Unsigned Binary Numbers in Digital Electronics
The positive numbers are represented in both ways- signed and unsigned, but the negative numbers can only be described in a signed way....
Read more >Signed versus Unsigned Integers - Stack Overflow
Unsigned can hold a larger positive value and no negative value. · Unsigned uses the leading bit as a part of the value,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No. I would argue neither is more correct than the other. However it has to choose one and I chose to go to unit where possible by default.
😃