Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

TSQL Challenge 55 - Multiply two very long decimal strings and return

By Jacob Sebastian,

TSQL Challenge 55 - Multiply two very long decimal strings and return the product

We recently saw a number of challenges that deal with Binary, Decimal and Hexadecimal strings (TSQL Challenge 40 and 51). Here is yet another challenge that deals with Decimal strings, but presents a different problem.

Your task is to multiply two positive integer strings and return their product. The strings can be really long: up to 1024 digits :-)

http://beyondrelational.com/blogs/tc/archive/2011/05/02/tsql-challenge-55-multiply-two-very-long-decimal-strings-and-return-the-product.aspx

Total article views: 1254 | Views in the last 30 days: 2
 
Related Articles
ARTICLE

TSQL Challenge 51 - Convert long Binary strings to Decimal strings

This challenge invites you to write a query that converts binary values into decimal format.

FORUM

allow varchar value to string and decimal parts

allow string and decimal from a varchar string

FORUM

TSQL Challenge 55 - Multiply two very long decimal strings and return

Comments posted to this topic are about the item [B]TSQL Challenge 55 - Multiply two very long decim...

ARTICLE

TSQL Challenge 67 - Find the longest sequence of alphabets in a string

This challenge invites you to identify the largest sequence of alphabets from a string.

ARTICLE

TSQL Challenge 70 - Find the longest sequence of alphabets in a string

This challenge invites you to identify the longest sequence of alphabets from a string.

Tags
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones