Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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: 1267 | Views in the last 30 days: 1
 
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