I am trying to build a function that converts a Decimal(Int) into a Binary number. Unfortunately other than in java it is not possible to divide an int by two in haskell. I am very new to functional programming so the problem could be something trivial. So far I could...

## Why is decimal more precise than double if it has a shorter range? C#

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: