How to Ignore  the signal?

Insert a number if the number of digits of that number is greater than its average return true else false.
So what i'd like to know , (and btw sorry about the other questions) how can it ignore the signal ?
e.g: number_aux = 53 -> this will be: Number of digits: 2
Media = (5 +3) / 2 = 4
( 2 < 4 ) then return false. now i'd like to find a way to insert -53 (negative) and the output must be the same (false) ignoring de signal "-"
here is my code:
In this code if u inserted a negative ( -6 or -53) the output is always true because e takes in mind the signal . How do i tell him to ignore it?
    System.out.println.... 
      int number _aux =Integer.parseInt(... ....etc
                                          int sum = 0;
          int count = 0;
          int media;
          while (number_aux != 0){
          int digit = number_aux % 10;
          number_aux  /= 10;
          sum += digit;
          if(number_aux  >= 0) count++;
          media =(int) (sum / count);
          return (count > media);thank you so much.
Josh

I already used my brain LOLO , if new the answer i
would not be here ask for help lol.
shiver You forgot to add three or more exclamation marks.
give me a hint , how to ignore the signal without
that method ( using my code)If I'd give you any number, how would you do it? What would there conditions and formula be? Think about that. Programming isn't magic. It's finding a step-wise solution to a problem and writing it down.

Similar Messages

  • How to extract the signal out from the waveform by my designated power level?

    Dear all,
         How can  I extract the signal from the waveform accroding to the power level? I read the Trigger&Gate.vi, but this vi extract signal according to the duration time. I want to extract signal according to power level.
         As shown in the following figures, the signal I want to process is between 130000 to 140000, if I zoom in, I can see the the useful signal is between 135400 to 138200. The question is how to extract the signal in the zone?  
        I tried the sub_NoiseEst_And_Chop_Shell.vi in the Packet_based_link example too, but this subvi seemed to be a little slow. Can anybody give me better advice? Thanks in advance!
    Solved!
    Go to Solution.

    I was working on something similar but haven't had time to fully develop it.
    My idea was to use an envelope detector (low pass filter) and then use an energy detection VI on the envelope.
    Here's where I left off
    Anthony F.
    Product Marketing Engineer
    National Instruments
    Attachments:
    test.vi ‏331 KB

  • WRT54G Question on how far does the signal reach?

    Question on how far does the signal reach?
    Like from the system box at home base, could you take the laptop what distance from it? Miles? Or jus a short distance? And what distance if anyone knows?
    Message Edited by White_Devil on 04-09-2008 08:21 PM
    [b]Loved Charlton Heston[/b]

    My 54G is at the far end of my house in my home office, 80+ feet away thru 4 walls I still get 25% signal, enough for a decent connection. Having an all wood construction house helps a bit. Once I was in my car out in the driveway (~90 ft) and it still worked OK.
    I've got the bigger hi-gain antennas, not sure that they improve the range that much. I didn't really notice much signal gain going from the short ones to the tall ones.

  • How to fix the signal with the microphone to the computer when recording through an interface? every time i record and play back i get poor signal and a lot of fuzz

    How to fix the signal from the microphone to the computer when recording through an interface in logic pro? Every time i record and playback i get poor signal and a lot of fuzz.. how can i fix this problem?

    Which model computer?
    What operating system?

  • How to fix the signal of my iphone 4?

    How to fix the signal on my iphone 4?

    you have a bad signal ?  dropping connections ?  go to settings.  then general.  and reset your network settings.  test from there.  this will reset any wifi connections you may have setup already btw.  you will have to connect to them again and put in the encryption key if needed.  if that doesn't work.  backup your phone.  wipe it to factory.  then test the signal then.  if all is ok then restore you files back to it and try again.  hopfully all that helps.

  • How to ignore the iOS 7.0.2 update on iPhone 5

    I do not wish to download the iOS 7.0.2 software update on my iPhone 5.
    How do I stop it reminding me? I no longer want a permanent red encircled 1 on my settings icon.
    Thanks for your help.

    I don't think you can get rid of it.  I'm not switching to iOS 7 either so I've learned to ignore the red encircled 1.  Good luck!

  • How to ignore the password policy in a custom workflow?

    Hi,
    We have a custom workflow which is called via SPML to provide 'Administrator Change Password' functionality in a portal.
    Our password policy sets the String Quality rules and Number of Previous Passwords that Cannot be Reused. But we like to bypass the password policy when the password administrators (who have a admin role with a capability - 'Change Password Administrator'). At least, restriction ' Number of Previous Passwords that Cannot be Reused' need to be ignored (But password need to be added to the history... cannot disable adding passwords to history).
    Please advice me how it could be achieved?
    The workflow steps:
    1. Checkout 'ChangeUserPassword' view for the user as an administrator
    2. Set the new password in the view, set true to view.savePasswordHistory
    3. Set password on the resources
    4.Checkin the view
    Thanks
    Siva

    Thanks eTech.
    My main goal is to skip the password history check (new password can't be a last used 10 passwords) when admin change password workflow is launched. As you suggested , I created a special password policy exactly as our regular password policy excluding "Number of Previous Passwords that Cannot be Reused" setting.
    Then before change the password of a user as admin, special policy is attached , password changed, and user's password policy is reverted back to regular one. The issue is, as the special policy does not enforce the password history check, the whole password history of the user is wiped out from the user object when the password is changed by admin change password workflow. We don't want this to happen.
    Please guide me whether is anyway to achieve just ignoring the password history without any other impact on user.
    Is adding passwords to user object's password history list is triggered by "Number of Previous Passwords that Cannot be Reused" setting of the password policy??
    Thanks
    Siva

  • How to ignore the material with error in costing run ck40n

    Hi
    Pls, advice how to ignore parent material form costing run if the components of that material have errors. I need to run the costing run excluding erroneous parent item. Is any configuration on this..
    Pls help..
    K

    Hi Kesharika Goona... 
    If you want to exclude any material from Costing Run, there are two ways...
    1. Go to Material Master, Costing1 view, take the check box "Do Not Cost". If you opt for this check box, the system will not consider this material for costing.
    2. Where you run the standard cost estimate in CK40N, once you save you costing run with the parameters like Costing Variant etc, When you select the "Parameters" agains the Flow step of "Selection", you will be asked to give the inputs like Material Number, Plant etc.
    There, against the Material Number, on the extrem right side, you will see a arrow, press that arrow, and there you can see a tab "Exclude Single Values". There you have to give the material number which you want to exclude from the costing run press "Execute" icon on the botoom-left corner of that pop-up window..
    If you still face problem, pls revert back
    Srikanth Munnaluri

  • How to ignore the first row  in sender file

    I would like to ignore the first row in each file in the sender channel - how can i do it?

    Hi
    Check this,
    As he said give Document Offset = 1
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Also check this forum
    Re: Supress Column Heading - File Content Conversion in Sender Adapter
    Thanks,
    Prakash

  • How to ignore the DTD in an XML file

    I am using XMLReader as
    XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    to parse an xml document. The XML has a <!DOCTYPE ....> in it which specifies a dtd file. If I do not have the dtd file on my local machine, the parser will fail. How can I tell the parser to ignore the <!DOCTYPE..> line, since I do not want it to validate against the dtd anyway?
    Thanks.

    just comment out the <!DOCTYPE> element and you will not have any problem and moreover the default behaviour of xerces is not to validate but see the well formedness .If you want to validate the xml document then do this
    parser.setFeature("http://xml.org/sax/features/validation" ,true);
    this will validate.
    hope this will help you

  • How to ignore the column header in GUI_UPLOAD

    Hi,
    I am trying to use GUI_UPLOAD to upload data from text file into a table. However there is no parameter to ignore the column headers in this function. how can i set to ignore the column headers in this function?

    Check the function module documentation and also refer to the parameter: HEADER_LENGTH
    Length of Header for Binary Data
    Description
    Specifies the length of the header information. You must only set this parameter if the file type is 'BIN'. The default value '00' means that there is no header in the file.
    Default
    '00'

  • How to ignore the popup message in TCD mode

    Hi All,
    I'm relatively new to all this. Could anyone kindly show me how to ignore those pop up message (which requires click 'yes' 'no') during the TCD recording and replay?
    The trouble I'm having at the moment is that depending on the effective start date, transaction asks either:
    1) Do you want to delimit the existing record in popup window
    2) Do you want to delete the existing record in popup window
    3) record created - no popup
    What I want to achieve is that regardless of any of these messages, I still want the transaction to complete and having data updated.
    Many thanks in advance.

    Hello,
    You can Ignore the message if the message is of following types:
    If no message type is given for the rule with this mode in column MSGTYP, all application log messages are ignored.
    If a particular message type (A, E, I, S, W, X) is specified, application log messages with exactly this type are ignored. If you want several message types (but not all) to be ignored, specify several rules with this mode and the message type to be ignored in each case
    Please refer the below link:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/49/6f57112c293b5be10000000a42189b/frameset.htm
    Hope the data was useful
    Regards,
    Swetha

  • How to ignore the customer with delete stamp when customer identification

    Hi Expert,
       In customer identification of the call center, SAP standard does not ignore the customer which has delete stamp. From our biz, we don't want to catch them when corresponding customer call. And we will create a new customer with the phone number. How can I ignore and create the new customer?
    BRs
    Liu Bo

    Hi,
    open in transaction BSP_WD_CMPWB the component ICCMP_BP_SEARCH.
    Go to View BuPaSelectCustomer
    Go to the IMPL class.
    Redefine method DO_PREPARE_OUTPUT to filter out the customers you don´t want which means delete them from the BOL collection.
    Kind regards
    Manfred

  • How to ignore the empty file using Receiver file adapter with Coma separato

    Hi,
      I am trying to create the .csv file at the receiver but when there is no data I wan to ignore the file even I do not want to create the file with comma also (I just went and check in my file system created with commas)
    Source1 -> T1
           T1
            -> S1
                  ->Field1
                  -> Field2
    Because I am using receiver side FCC populating with empty node
    Based on condition T1 is populating when condition fails I am populating target T1 and structure elements are mapped with constant. 
    Ex: Target payload when condition failed below data is populating ..
    In this I want to ignore creating the file.
    <T1>
    <S1>
    <Field1/>
    <Field2/>
    </S1>
    </T1>
    Here Is the my content conversion parameters,
    S1.fieldNames - Field1,Field2
    S1.fieldSeparator - ,
    S1.endSeprator u2013 u2018nlu2019
    I used processing tab u2018Ignoreu2019 option id did not worked. Appreciate your help. 
    Regards,
    Venu.

    Hi Raj,
       I went my receiver mapping signature tab I chagned occurance from 1 to 0..1
    then my mapping got lossed now message type level I put the condition. When my condition not satisfy I am not creatin gthe target node itself.(I mean here message type) Messages ->message1 only is creating..
    but in SXMB_MONI below error I am getting..
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>Split mapping created no messages</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Split mapping created no messages</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks for your response.
    Regards,
    Venu.

  • How to isolate the signals between TX/RX and RX2 on the USRP N210?

    Hello everyone,
        I want to use one USRP N210 to transmit and receive signals simultaneously. But when I try to transmit signals from TX/RX and receive signals from RX2(the transmitted and received signals are on the same center frequency), I found that the there are signals leaked from TX/RX to RX2.  What can I do if I want to isolate the signals between TX/RX and RX2?
       Thanks very much!

    Hello -
    I believe two questions are being asked on this thread:
    1. Isolation:  The internal switch provides about 30dB of isolation between TX/RX and RX2. As with most transcievers, if you transmit and recieve on the same frequency at the same time you will recieve your own transmission as well.
    2. Spurs: The USRP represents and optimized price vs performance and some images and spurs will occur.  Often they can be predicted as you mention. One thing you can do is use the CORDIC to acquire a signal at IF and then digitally shift I and Q to the ceneter frequency and bandwidth of interest.   This is done by setting the 'lo' via a property node and 'center frequency' to different values.
    Other NI RF instrumentation options are available if you're looking for  RF performance.  The NI 5791 was recenty released and may be of interest.
    Best Regards,
    Erik

Maybe you are looking for