I would like to find the least significant digit position of C# decimal
and set a 1 in that position and zero in all other positions.
So for example for 2m the result would be 1m. For 34m the result would be 1m. For 0.4m it would return 0.1m. For 1200m I would want 100m.
How do I do this?
Can I use something similar to https://stackoverflow.com/a/757266/246622 ?
(Edit: I removed the confusing 2.0m, added result for 1200)