You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was expecting UnitsNet to already include this functionality and I'm surprised that it doesn't (if it does and I'm missing something, please let me know).
Consider the following:
varsize= Information.FromBytes(10000000);
I want to print size in a human-friendly style. When I do size.ToString(), I get "1e+07 B"; but what I would ideally want is "10 MB", I want it to detect the most reasonable/closest unit it can display the value with, and use that in the string.
Is this not possible? I would think it's a pretty common thing to need to do.
The text was updated successfully, but these errors were encountered:
Hi, there is no support for this. We could offer some basic support I guess to provide a bit more support out of the box, but it would really duplicate some of the efforts that Humanizer already has done. Why not just use Humanizer?
Much of Humanizer's functionality when it comes to units overlaps with UnitsNet's, so using both is a bit awkward, I was hoping UnitsNet would have some basic support in this regard.
I was expecting UnitsNet to already include this functionality and I'm surprised that it doesn't (if it does and I'm missing something, please let me know).
Consider the following:
I want to print
size
in a human-friendly style. When I dosize.ToString()
, I get "1e+07 B"; but what I would ideally want is "10 MB", I want it to detect the most reasonable/closest unit it can display the value with, and use that in the string.Is this not possible? I would think it's a pretty common thing to need to do.
The text was updated successfully, but these errors were encountered: