Replies: 2 comments 2 replies
-
Have you looked at the two strings generated by Also see relevant documentation:
|
Beta Was this translation helpful? Give feedback.
-
Yes. However, the issue isn’t from If you want to format values for your user interface, you should always use a format string. Also, value equality does not imply string equality. Value equality means that the values represent the same thing. In numerics, 10 and 10.0 are the same thing, so they should compare equal. But that doesn’t mean they have the same bit representation. For example, |
Beta Was this translation helpful? Give feedback.
-
Hello everybody. Today I found extremely strange behavior of string representation of decimal struct. But first let's look at the following code:
I expected, that it should return:
but it returns:
Can you explain me is it expected behavior or it's a bug? If it's a bug, can you create issue for it?
It's reproduces on .NET 6.
Beta Was this translation helpful? Give feedback.
All reactions