SQLServerCentral Article

TSQL Challenge 51 - Convert long Binary strings to Decimal strings

,

TSQL Challenge 51 - Convert long Binary strings to Decimal strings

TSQL Challenge 40 challenged you to a query that converts binary values into hexadecimal format. This challenge invites you to write a query that converts binary values into decimal format.

The tough part with this challenge is that the input strings can be up to 2048 characters long. This means that the solution will have to perform calculations on very large decimal numbers (over 600 digits) which makes this more difficult than TC40.

http://beyondrelational.com/blogs/tc/archive/2011/03/07/tsql-challenge-51-convert-long-binary-strings-to-decimal-strings.aspx

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating