Im reading the C# in a Nutshell book and it shows this table: Im having a hard time understanding the table. It says that double takes 64 bits of space and it ranges from 10^-324 to 10^308. Decimal takes 128 bits of space BUT is also says that it ranges...

## Round a decimal to the first decimal position that is not zero

I want to shorten a number to the first decimal position that is not null. The Decimal places behind should be rounded.

## converting int to decimal choosing where to put decimal place

I have an interesting problem, I need to convert an int to a decimal.So for example given:I have played around, and this function works, I just hate that I have to create a string and convert it to a decimal, it doesn't seem very efficient: