|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Yesterday @ 8:51 AM
Points: 771,
Visits: 690
|
|
dun (11/24/2009)
That's a big number. How do you report that on your financials? Numbers represented in $000,000,...,000,000?  It made me do a search on the net for big number names (see http://www.sizes.com/numbers/big_numName.htm). It was interesting to find that the number 1 billion can mean something different in other countries. Fantastic.
You have now ruined my morning ... HAHA ... i am doing the same.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, March 18, 2013 7:52 PM
Points: 280,
Visits: 88
|
|
Not an every day problem for us (hi from France ^^ ), but as we have to communicate in english for international, it is an usual question :D
My MCP Transcript (ID : 692471 Access : 109741229)
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Thursday, June 13, 2013 7:29 AM
Points: 1,737,
Visits: 63
|
|
Any number of zeros returns 1. So if it is smart enough to know that all the characters are zero and thus must be a number why can't it just check all the characters individually to see if they are 0 to 9? Or is there no such thing as a number larger than a float's maximum value? I just now noticed that it strips away all leading zeros. I guess that answers my own question.
SELECT ISNUMERIC(REPLICATE('0', 7690) + REPLICATE('1', 310)) returns 0
SELECT ISNUMERIC(REPLICATE('0', 7691) + REPLICATE('1', 310)) returns 1
The reason then that the second one returns 1 is that there are really only 309 of them. It only considers the first 8000 characters of the string, meaning there are really only 309 of the digit 1, which we already know returns a 1.
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Yesterday @ 8:51 AM
Points: 771,
Visits: 690
|
|
crussell-931424 (11/24/2009) Any number of zeros returns 1. So if it is smart enough to know that all the characters are zero and thus must be a number why can't it just check all the characters individually to see if they are 0 to 9? Or is there no such thing as a number larger than a float's maximum value? I just now noticed that it strips away all leading zeros. I guess that answers my own question.
SELECT ISNUMERIC(REPLICATE('0', 7690) + REPLICATE('1', 310)) returns 0
SELECT ISNUMERIC(REPLICATE('0', 7691) + REPLICATE('1', 310)) returns 1
The reason then that the second one returns 1 is that there are really only 309 of them. It only considers the first 8000 characters of the string, meaning there are really only 309 of the digit 1, which we already know returns a 1.
i agree 0= 000 but 1 <> 111
|
|
|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Yesterday @ 3:19 PM
Points: 31,526,
Visits: 13,863
|
|
|
|
|