I'm new to C# (Come from Java/C++ at uni so it's not really that new I guess) but for a project I'm needing to compare decimals.
e.g.
a = 1234.123
b = 1234.142
Decimal.Compare()
will of course say they're not the same as a is smaller than b. What I want to do is compare it to that first decimal place (1 and 1) so it would return true.
The only way I've been able to think of is to convert it to use Decimal.GetBits()
but I was hoping there is a simpler way I just haven't thought of yet.