f



Number of Numbers

 Hi! i need help... there is a function that would let me now the
number of numbers in a string?

  Thanks
0
9/10/2009 10:11:46 AM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

2 Replies
943 Views

Similar Articles

[PageSpeed] 54


 Hi! i need help... is there a function that would let me Know the
number of numbers in a string?

  Thanks
0
9/10/2009 12:22:06 PM
On Sep 10, 1:22=A0pm, misschupito <cristinap...@gmail.com> wrote:
> =A0Hi! i need help... is there a function that would let me Know the
> number of numbers in a string?
>
> =A0 Thanks

Not sure if tehre is an easier way but this would work

data test;
 char=3D'abdj 34 fffk 45fg';
num_of_digits=3Dlength(compress
(char,'0''1''2''3''4''5''6''7''8''9','k');
run;
0
iharun171 (40)
9/10/2009 2:55:47 PM
Reply:

Similar Artilces:

find digit length or the number of numbers in number ?
Hi, I am trying to find out how many digits there are in a given number. The macro listed below works fine when applied to an INT, however when doing Doubles with numbers > then a billion ?? It stops working. Anyone any idea's ? Thankx ! Steven. #include <stdio.h> #include <math.h> #define DIGLEN(x) (x ? (int)(log10((double)(abs(x)))) + 1 : 1) int main(int argc, char *argv[]) { int i = 123; double j = 807319385.29; double k = 12258983401.75; printf("%3d: %d\n", DIGLEN(i), i); printf("%3d: %.2f\n", DIGLEN(j), j); printf("%3d: %.2f\n&q...

equation number, table number, figure number linked to the same paragraph number
I have a paragraph number, example A-XXX Then I want to have equations like: .... Eq A-1 .... Eq A-2 ... liked to this paragraph And also ... fig A-1 .... fig A-2 ...linked only to this paragraph .... At the end. I want to have... A-XXX .... Eq A-1 .... fig A-1 .... fig A-2 .... Eq A-2 .... Eq A-3 .... fig A-3 B-XXX .... Eq B-1 .... fig B-1 .... Eq A-2 .... Eq A-3 .... fig B-2 Thanks for ideas On Sat, 17 Nov 2007 23:22:15 +0100, value <####@wanadoo.fr> wrote: > I have a paragraph number, example > > A-XXX > > T...

Re: Number of Numbers
Can you post an example? There are several things I could imagine this meaning. -Joe On Thu, Sep 10, 2009 at 5:11 AM, misschupito <cristinaprps@gmail.com> wrote: > Hi! i need help... there is a function that would let me now the > number of numbers in a string? > > Thanks > ...

number of digits in a number
Hi, Do you know a way to tell to the compiler that if there are numbers of 1 digit ( 2, 6, 8,...), I want spaces like this: " ". But if I have numbers of 3 digits, I want spaces like this: " ". I don't know how to get the numbers of digits in a number (integer or float). Thanks. bejiz wrote: > Hi, > Do you know a way to tell to the compiler that if > there are numbers of 1 digit ( 2, 6, 8,...), I want spaces like this: > " ". > But if I have numbers of 3 digits, I want spaces > like this: " ". > I don't know how to get the numbers of digits in > a number (integer or float). Number of digits in 'x' (assuming 'x' is unsigned) : int ndigits = x > 0 ? int(log10(x)) + 1 : 1; As to preceding number of spaces, see 'setw' stream manipulator. V -- Please remove capital 'A's when replying by e-mail I do not respond to top-posted replies, please don't ask Victor Bazarov wrote: > bejiz wrote: >> Hi, >> Do you know a way to tell to the compiler that if >> there are numbers of 1 digit ( 2, 6, 8,...), I want spaces like this: >> " ". >> But if I have numbers of 3 digits, I want spaces >> like this: " ". >> ...

SELECT WHERE NOT A NUMBER/IS A NUMBER?
Hi Anyone know how to select only values from a row that contain a number or that don't contain a number? Thanks, Ciar=E1n On Jan 30, 7:06=A0pm, Ciaran <cronok...@hotmail.com> wrote: > Hi Anyone know how to select only values from a row that contain a > number or that don't contain a number? > Thanks, > Ciar=E1n Can you provide an example? On Jan 30, 7:36=A0pm, strawberry <zac.ca...@gmail.com> wrote: > On Jan 30, 7:06=A0pm, Ciaran <cronok...@hotmail.com> wrote: > > > Hi Anyone know how to select only values from a row that contain a > >...

Numbers to strings to numbers again
I think I an getting the hang of this language, but I ran into a puzzler. I have a large array of data objects initialized at onLoad() time in an HTML page. I send them in as numbers. I gather that things are strings unless specifically made otherwise. I do a search on the data, which is essentially a loop of string compares. That works fine. So I want to optimize a little bit, and do some basic numeric comparisons before I start the linear search. I did not use parseInt() or parseFloat(), I just used the str - 0 trick to force type conversion. However, something is not working. ...

NUMBER(0) and NUMBER
Hello, what does the datatype NUMBER(0) mean? Is it the same as NUMBER, which can be seen in turn as FLOAT? Thank you, Norbert On Aug 19, 8:53=A0am, Norbert P=FCrringer <thalio...@graffiti.net> wrote: > Hello, > > what does the datatype NUMBER(0) mean? Is it the same as NUMBER, which > can be seen in turn as FLOAT? > > Thank you, > Norbert SQL> create table numtest( 2 col1 number(0), 3 col2 number 4 ); col1 number(0), * ERROR at line 2: ORA-01727: numeric precision specifier is out of range (1 to 38) SQL> It means, apparently, that someone doesn't understand the NUMBER datatype in Oracle. And NUMBER, absent a precision specifier, is equivalent to using NUMBER(38). David Fitzjarrell On Aug 19, 8:53 am, Norbert P=FCrringer <thalio...@graffiti.net> wrote: > Hello, > > what does the datatype NUMBER(0) mean? Is it the same as NUMBER, which > can be seen in turn as FLOAT? > > Thank you, > Norbert Have you considered TRYING it?? create table ejp (id number(0)) Error at line 1 ORA-01727: numeric precision specifier is out of range (1 to 38) Script Terminated on line 1. HTH, Ed On Aug 19, 10:19=A0am, Ed Prochak <edproc...@gmail.com> wrote: > On Aug 19, 8:53 am, Norbert P=FCrringer <thalio...@graffiti.net> wrote: > > > Hello, > > > what does the datatype NUMBER(0) mean? Is it the same as NUMBE...

number of processors, number of cores, how can I get these numbers?
hi, I have two questions, 1/ is there any OS function which return me the number of core on each processor on my computer (callable from C++) 2/ is there any OS function which return me the number of processor on my computer (callable from C++) By OS I mean Windows (XP and later), Linux, Solaris... Thanks XS Jekyll wrote: > hi, > I have two questions, > 1/ is there any OS function which return me the number of core on each > processor on my computer (callable from C++) By definition, OS functions are not part of Standard C++, and are therefore off-topic in comp.lang.c++. Ask i...

How to understand that there are both "virtual ~Number();" and "Number::~Number()"?
Hi, When I read the example class, I feel puzzled about "Number::~Number()" after there is virtual ~Number(); I remember that the derived class of Number should have a real ~Number(); Now, class Number has both virtual and member function ~Number(). Can you help me on this question? Thanks for the expert keeping answer my questions. //////////////////////////// struct BaseConstructor { BaseConstructor(int=0) {} }; class RealNumber; class Complex; class Number; class Number { friend class RealNumber; friend class Complex; public: Number (); Number & operator = (const Number &n); Number (const Number &n); virtual ~Number(); virtual Number operator + (Number const &n) const; void swap (Number &n) throw (); static Number makeReal (double r); static Number makeComplex (double rpart, double ipart); protected: Number (BaseConstructor); private: void redefine (Number *n); virtual Number complexAdd (Number const &n) const; virtual Number realAdd (Number const &n) const; Number *rep; short referenceCount; }; Number::~Number() { if (rep && --rep->referenceCount == 0) delete rep; } [Please do not mail me a copy of your followup] What book is this you're reading so I can make sure *not* to recommend it to anyone? LOL. I find the snippets you're posting to leave a reader new to the language more c...

Math lesson: large positive number
When you take a large positive number, and subtract a smaller positive number, the result is a positive number, not a negative number. Schestowitz seems confused on this point: <http://boycottnovell.com/2010/03/14/paying-companies-to-kill-rivals/> -- --Tim Smith On Sun, 14 Mar 2010 22:31:26 -0700, Tim Smith wrote: > When you take a large positive number, and subtract a smaller positive > number, the result is a positive number, not a negative number. > > Schestowitz seems confused on this point: > > <http://boycottnovell.com/2010/03/14/paying-compani...

How to convert a float number to integer number which will be used as the index number of an array
ind1 := valueFoo / pace; will result a float value, how to convert it to an integer? "sun shaking" <sunshaking@hotmail.com> wrote in message news:dj1vtj$22hp$1@mail.cn99.com... > > ind1 := valueFoo / pace; > will result a float value, how to convert it to an integer? > > which integer? round up or down? ?round ?trunc ?floor ?ceil Nasser ...

Number Assignment and Number Portability
All, Does anyone know a vendor who provides PSTN number assignment and Number Porting services? I want to be able to give my users a PSTN number or port there existing number over to my server without haveing to become a CLEC Thanks, BY Hi! >Does anyone know a vendor who provides PSTN number assignment and Number >Porting services? I want to be able to give my users a PSTN number or >port there existing number over to my server without haveing to become a >CLEC Do you know http://www.nanpa.com/ ? Maybe you'll find a pointer there ? -- MfG/Best regards, Kurt Jaeger 16 years to go ! LF.net GmbH fon +49 711 90074-23 pi@LF.net Ruppmannstr. 27 fax +49 711 90074-33 D-70565 Stuttgart mob +49 171 3101372 Brian Young <info@sparcusa.com> wrote in message news:<l9Qmc.157867$Gd3.42618724@news4.srv.hcvlny.cv.net>... > All, > > Does anyone know a vendor who provides PSTN number assignment and Number > Porting services? I want to be able to give my users a PSTN number or > port there existing number over to my server without haveing to become a > CLEC > > Thanks, > > BY Nikotel provides porting services in Germany. Maybe they also do in the US. As they have a lot of business customers they probably do. But there's nothing on the webpage. You have to contact their support guys. Juhura Nagamichi ...

Re: Number of Numbers #5
that is another idea, what might be "number of numbers": the number of DIFFERENT numeric digits - among 7 other ideas of what is meant... Gerhard On Thu, 10 Sep 2009 10:25:11 -0400, Paul Dorfman <sashole@BELLSOUTH.NET> wrote: >Hi, > >I concur with Joe that you could have formulated the task your putative >function is supposed to perform less ambiguously. However... *if* >by "number of numbers" you meant the number of times any digit character >appears in the string, then the answer depends on the SAS version you are >using. In V8, one could use...

Table numbers same as page numbers
Hi, I would like to give a table the same number as the page number it appears on, like in Concrete Mathematics book. How can I achieve this? I am using memoir. Thank you very much in advance. Athale. athale@risc.uni-linz.ac.at (Athale) wrote: > I would like to give a table the same number as the page number it > appears on, like in Concrete Mathematics book. How can I achieve this? \let\thetable\thepage in the preamble of your document should do it. HTH, Axel Hi, > > I would like to give a table the same number as the page number it > > appears on, like in Concrete ...

Re: Number of Numbers #2
Hi, I concur with Joe that you could have formulated the task your putative function is supposed to perform less ambiguously. However... *if* by "number of numbers" you meant the number of times any digit character appears in the string, then the answer depends on the SAS version you are using. In V8, one could use a somewhat awkward expression length(compress(s)) - lengthN(compress(s," 0123456789")) - (s = "") where S is the string variable in question. In V9 (do not remember exactly starting with which release), it is a simple countC (s, "0123456789&quo...

Re: Number of Numbers #4
if you add a ) after ..'k') that would run and bring a result, but it's not clear if that is the right one! For me the exact definition of "number" is missing. What is a "number"? Only numeric digits, or are "34" and "45" also numbers? What about "34e5"? 3 numbers, or 1, or 6, or ...? Gerhard On Thu, 10 Sep 2009 07:55:47 -0700, inason <iharun17@GOOGLEMAIL.COM> wrote: >On Sep 10, 1:22 pm, misschupito <cristinap...@gmail.com> wrote: >> Hi! i need help... is there a function that would let me Know the >> number of numbers in a string? >> >> Thanks > >Not sure if tehre is an easier way but this would work > >data test; > char='abdj 34 fffk 45fg'; >num_of_digits=length(compress >(char,'0''1''2''3''4''5''6''7''8''9','k'); >run; ...

Record number or row number
How can I obtain the record number or row number for a record while in form view? Thank you in advance for any information. R. L. billiards9@sbcglobal.net wrote: > How can I obtain the record number or row number for a record while in form > view? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There are not "natural" row (aka record) numbers in a relational db's table, since, by definition, a table is an unordered set. In a Recordset you can use the AbsolutePosition or a BookMark. These are not row numbers as such, they are only pointers into the retrieved record...

Complex Numbers to Real numbers
What is the best way to convert a complex number say "5 - .2i" to a real value? The function real returns the real part, but if I need a complex number as a real value, is that the best way to convert it to a real value? thx In article <eef8b35.-1@webx.raydaftYaTP>, Mark <mktw@yahoo.com> wrote: > What is the best way to convert a complex number say "5 - .2i" to a > real value? > > The function real returns the real part, but if I need a complex > number as a real value, is that the best way to convert it to a real > value? > > thx ...

Normal numbers in, weird numbers out
OK, I'm stumped. I'm also up way past my bedtime. The following code is supposed to calculate the average of a triplet of readings which has been previously summed, then display them in the form "2.3,-4.9, 3.3". For some reason this step seems to not be working (I've already verified that the summation is happening correctly). Integers are 32-bit. _count is incremented each time a triplet is summed into _readings (not shown here). _count is expected to be in the 50-500 range. _scale = 20000. Positive numbers seem to be getting calculated correctl...

sort number with deleting the same number
Hi all... How can I sort the number and delete the the number which has the same number for ex: a= 3 5 2 4 3 4 4 into a=2 3 4 5 thanks alot P� Wed, 16 Feb 2005 01:19:45 -0500, skrev wahyu <addy_w33@yahoo.com>: > Hi all... > > How can I sort the number and delete the the number which has the > same number > > for ex: > a= 3 5 2 4 3 4 4 > > into > a=2 3 4 5 > > thanks alot help unique -- K Hi, a=[3 5 2 4 3 4 4]; a=sort(unique(a)) J�r�me J�r�me wrote: > > > Hi, > > a=[3 5 2 4 3 4 4]; > a=sort(unique(a)) > > J�r�me >...

number of possibilities of a number with all elements
hi, i have numbers like 1 2 3 4 5 motive is to make matrix like 1 2 1 3 1 4 1 5 1 2 3 1 2 4 1 2 5 1 3 4 1 3 5 1 4 5 %then 1 2 4 5 these 12345 is maybe any numbers suppose 21 45 67 33 22.number of elements is 5 it may vary to any length 21 45 21 67 21 33 21 22 21 45 67 21 45 33 21 45 22 21 67 33 21 67 22 21 33 22 21 45 33 22 adding more iam using these code same problem occured it cretes problem when their is large string.it is slow also.for S=[S3(1:15)] this is ok but when iam using S=[S1,S2,S3] matlab gives problem of "out of memory". S1 =[3 20 21 22 23 25 2...

Re: Number of Numbers #3
e.g., what is the number of numbers in "12" ? 1, 3, 4? 1 = 12 3 = 1, 2, 12 4 = 1, 2, 12, 21 What in "1 2" ? Is "1e2" or "1d2" a number? Gerhard On Thu, 10 Sep 2009 08:56:13 -0500, Joe Matise <snoopy369@GMAIL.COM> wrote: >Can you post an example? There are several things I could imagine this >meaning. > >-Joe > >On Thu, Sep 10, 2009 at 5:11 AM, misschupito <cristinaprps@gmail.com> wrote: > >> Hi! i need help... there is a function that would let me now the >> number of numbers in a string? >>...

minor numbers and instance numbers
I (newbie) am trying to write a ramdisk driver. To create devices I have got two approaches: Approach 1 ------------------ If I write ramdisk.conf like this. name="ramdisk" parent="pseudo" instance=0; name="ramdisk" parent="pseudo" instance=1; name="ramdisk" parent="pseudo" instance=2; every time i load module ramdisk_attach() gets called and three devices get created /devices/pseudo/ramdisk@0:0 /devices/pseudo/ramdisk@1:0 /devices/pseudo/ramdisk@2:0 So after reboot devices can get created automatically. Approach 2 ------------...

10 numbers in between 2 numbers
How can I get an array of 10 numbers in between two numbers? (1..500).to_a How can I turn the above into an array of ten numbers in between 1 and 500 (including 1 and 500)? On Jan 19, 2009, at 9:58 PM, jko170 wrote: > How can I get an array of 10 numbers in between two numbers? > > (1..500).to_a I guess it depends on which ten numbers you want, but here's one way: >> (1..500).enum_for(:step, 50).to_a => [1, 51, 101, 151, 201, 251, 301, 351, 401, 451] James Edward Gray II On Mon, Jan 19, 2009 at 7:58 PM, jko170 <jko170@gmail.com> wrote: > How can I get a...

Web resources about - Number of Numbers - comp.soft-sys.sas

Number - Wikipedia, the free encyclopedia
A number is a mathematical object used to count , label, and measure . In mathematics , the definition of number has been extended over the years ...

Number - Wikipedia, the free encyclopedia
A number is a mathematical object used to count , label, and measure . In mathematics , the definition of number has been extended over the years ...

Apprenticeships numbers plummet
The number of Australians beginning an apprenticeship has slumped by almost 20 per cent over the past year, with enrolments in traditional trades ...

SEC Football by the Numbers: Before the NFL, Peyton Manning was a Tennessee Vol
AL.com SEC Football by the Numbers: Before the NFL, Peyton Manning was a Tennessee Vol AL.com 2 Players in SEC history had averaged at least ...

Whole lotta onions: Number of Tor hidden sites spikes—along with paranoia
Two sudden leaps in the number of advertised "hidden services" on Tor have led to rampant speculation about the cause of them. (credit: The Tor ...

'Ferguson effect' not seen in national study, local crime numbers
... man by a white police officer in Ferguson, Mo. - caused a nationwide crime wave found little evidence that such a phenomenon exists. Numbers ...

Donald Trump drawing record numbers in GOP primary race - Videos - CBS News
Despite all the nasty exchanges between GOP front-runner Donald Trump and his rivals, at some point the race boils down to the numbers. And as ...

How to play the jobs number
Using Kensho, a hedge fund analytics tool, CNBC Pro screened for which securities do well and poorly on jobs report days.

John Kasich Blames Free Trump Media Blitz For His Low Numbers
... first day you announced KASICH: George, I'm not just I'm not look, I'm not just talking about. You know look, you want to look at the numbers? ...

Bugatti Chiron numbers generator: 1,500
The Chiron is a supercar to top all supercars to date. Also, technology to keep the driver from getting lost.

Resources last updated: 3/7/2016 2:25:40 AM