Boolean double is in range of two other doubles.

First, I apologize if this is in wrong forum, seems I can never decide which forum I should ask my questions in and I get jumped on, so if this is wrong I am sorry.
I have been searching every where for a boolean range checker to tell me if a user input (double) is in between two double numbers. Where can I find something on how to do this? Searches I have done have turned up nothing. I do not want someone to do it for me, I want to learn.
Thank you
javahelp44

javahelp44 wrote:
I tried doing something like that putting an if statement in my try block, but I kept getting an illegal expression start error I think it was. So I was under the impression I could not use an if staement inside the try block. I will try again...The error message contains actual useful information. It's there to help you. It's not the compiler biting at your fingers -- you don't have to jump back and remove the new code in a panic. Read the error message, consider what it says, try to understand it, adjust your code accordingly. If you really don't understand an error message, then post it here (the full thing not just some paraphrase) and the relevant code and ask for help.

Similar Messages

  • Same number range for two different series groups?

    Dear all,
    There are two scenarios
    1.Normal export under bond case, series group is 20 and number range maintained,running number is 300016
    2.Another scenario,where ARE1 document generation for Deemed exp customer(already customised) , series group is 30.
    But, client requirement is , for this second scenario also, system should pickup running number range of series group 20(under bond case)  as per excise legal requirement
    Ie running number is for series group 20 is 300016
    For the above deemed exp case (second scenario)it should pickup 300017
    And again when they do under bond case(first scenario), it should pick up 300018 like that
    Is it possible to maintain the same number range for two different series groups(20 and 30)?
    Even if you maintain the same number range for 30, as per running number range of 20
    Will the system update simultaneously the same number range for 20 and 30 series groups?
    Please suggest the way.

    With two different series groups, it is not possible to have the same number range. Even if you maintain it, they will be treated independently.
    Normally, you should not use different series groups if the same number range has to be used. In fact, the concept of series group has been developed to ensure that number ranges can be maintained separately.
    Regards,
    Aroop

  • Function Module for getting Number ranges between two number

    Hi guys,
    Is there any Function module which provide us the number range between two numbers?
    For Ex:If i give 1 and 10 to FM it must give me 1
    2
    3
    4.....upto 10.
    is there any FM for doing this,but i'm not able to find exact Fm for same.
    I can write small piece of code for getting number ranges, but if i get FM it could save little work.

    Hi
    But why do u need a fm, can't you do it by yourself?
    DATA: FROM_NUMBER TYPE I VALUE 1,
          TO_NUMBER   TYPE I VALUE 15.
    DATA: NUMBER            TYPE I.
    DATA: BEGIN OF T_NUMBER OCCURS 0,
                  NR TYPE I,
              END    OF T_NUMBER.
    NUMBER = FROM_NUMBER.
    DO.
      IF NUMBER <= TO_NUMBER.
        T_NUMBER-NR = NUMBER.
        APPEND T_NUMBER.
      ELSE.
        EXIT.
      ENDIF.
      NUMBER = NUMBER + 1.
    ENDDO.
    LOOP AT T_NUMBER.
      WRITE: / T_NUMBER-NR.
    ENDLOOP.
    Max

  • Problems creating a view that's a union of two other views

    Hello all you Oracle folks,
    I'm pretty new to this Oracle thing, coming over from SQL Server where life was simple. Here's my issue;
    I am trying to create a view that is a union of two other views.
    I can run the top SELECT of this view (before the UNION) and it works no problem, and I can run the bottom SELECT (after the UNION) and it also works with no problem. I can run a DESC on both views involved, and those also work without any problem.
    When I try to run the SQL all together though, I get this;
    SQL> CREATE materialized view trkmaster.cmp_pmr_union refresh force ON demand AS SELECT 'CMR'
    2 "Ticket_System", "Id_col" "Ticket", "Submitter", "Submit_Date", "Submit_To",
    3 "Actual_Activity_Start_Date" "Start_Date", "Actual_Activity_Start_Time" "Start_Time",
    4 "Actual_Activity_End_Date" "End_Date", "Actual_Activity_End_Time" "End_Time",
    5 "Close_Date", "Risk_Level" "Level", "Activity_Type" "Type", "Activity_Category"
    6 "Category", "Hardware_Name" "Hardware", "Platform", "Application_Name" "Application",
    7 "Completion_Status" "Status", "Area_CMPO" "Owner", "Outage_Minutes" "Total_Outage_Mins",
    8 "Acorde_Downtime__in_minutes_" "Acorde", "Atlas", "Corporate_Email_Downtime"
    9 "Corporate_Email", "Data_Warehouse_Downtime__In_M6" "Data_Warehouse",
    10 "E__Commerce_Downtime__In_Mins_" "ECommerce", "FMDS__FIVR_" "FMDS_FIVR",
    11 "FMDS_Hotels_Downtime" "FMDS_Hotels", "FMDS_Internet_Downtime" "FMDS_Internet",
    12 "FMDS_Resv__Ctr_Downtime" "FMDS_Resv_Ctr", "GDS_Downtime__In_Mins_" "GDS",
    13 "HI_Online_Downtime__In_Mins_" "HI_Online", "Holidex__CRO____In_Mins_" "Holidex_CRO",
    14 "Holidex__Hotels____In_Mins_" "Holidex_Hotels", "Hyperion_Essbase",
    15 "IHGMail_Downtime__In_Mins_" "IHG_Mail", "Kofax_Downtime__in_minutes_" "Kofax",
    16 "PeopleSoft_Fin_Downtime_In_Mi1" "Peoplesoft", "PERFORM__HIRO____In_Mins_" "Perform_HIRO"
    17 FROM CMP.CHRQVCHANGE_MANAGEMENT_REQUEST UNION SELECT 'PMR' "Ticket_System", "Id_col"
    18 "Ticket", "Submitter", "Submit_Date", "Submit_To", "Problem_Start_Date" "Start_Date",
    19 "Problem_Start_Time" "Start_Time", "Problem_End_Date" "End_Date", "Problem_End_Time"
    20 "End_Time", "Close_Date", "Severity_Level" "Level", "Problem_Type" "Type",
    21 "Occurrence_Type" "Category", "Hardware_Name" "Hardware", "Platform", "Application_Name"
    22 "Application", "Close_Code" "Status", "Problem_Owner" "Owner",
    23 "TOTAL_Outage_Time__If_Any_" "Total_Outage_Time", "Acorde_Downtime__in_minutes_" "Acorde",
    24 "Atlas", "Corporate_Email_Downtime" "Corporate_Email", "Data_Warehouse_Downtime__In_M6"
    25 "Data_Warehouse", "E__Commerce_Outage_Time__Mins_" "ECommerce", "FMDS__FIVR_" "FMDS_FIVR",
    26 "FMDS_Hotels_Outage_Time__In_M5" "FMDS_Hotels", "FMDS_Internet_Outage_Time__Mi4"
    27 "FMDS_Internet", "FMDS_Resv__Ctr_Outage_Time__M3" "FMDS_Resv_Ctr",
    28 "GDS_Outage_Time__Mins_" "GDS", "HI_Online_Outage_Time__In_Min2" "HI_Online",
    29 "Holidex__CRO____In_Mins_" "Holidex_CRO", "Holidex__Hotels____In_Mins_" "Holidex_Hotels",
    30 "Hyperion_Essbase", "IHG_Mail_Outage_Time__In_Mins_" "IHG_Mail",
    31 "Kofax_Downtime__in_minutes_" "Kofax", "PeopleSoft_Fin_Downtime_In_Mi1" "Peoplesoft",
    32 "PERFORM__HIRO____In_Mins_" "Perform_HIRO" FROM PMR.CHRQVPROBLEM_MANAGEMENT;
    "PERFORM__HIRO____In_Mins_" "Perform_HIRO" FROM PMR.CHRQVPROBLEM_MANAGEMENT
    ERROR at line 32:
    ORA-00942: table or view does not exist
    The 'CMR' and 'PMR' as Ticket_System is me trying to assign a literal as a newly created column.
    All the data types match from one view to the other.
    If I switch around the SQL so the 'CMR' view is at the bottom and the 'PMR' view is at the top, it still errors out on the 'PMR' view as not existing, even though I can DESC it and run the SELECT using that view. A coworker thinks it could be some kind of view alias issue (?).
    I know the view exists, and I can access it no problem. Any ideas why this isn't working? It seems so simple, I could do this in a heartbeat in SQL Server. I have very few hairs left to rip out, so any help would be appreciated.

    SELECT 'CMR' "Ticket_System",
    "Id_col" "Ticket",
    ....you have wrapped up your columns with a double quotes and use an alias. i tried the same thing
    but using a different table and it does not work.
    SQL> desc emp;
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    ENAME                                              VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                    NOT NULL NUMBER(2)
    SQL> select "empno" "employee_number"
      2    from emp;
    select "empno" "employee_number"
    ERROR at line 1:
    ORA-00904: "empno": invalid identifier
    SQL> how were you able to run the top level of your SQL before the UNION clause? did you run it thru some tools
    other than SQL*Plus?

  • I have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3

    i have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3.
    the problem is best explained on the following one - page thread: 
    https://discussions.apple.com/thread/3951518?start=0&tstart=0
    (Clearly i'm not alone in this problem, although i think i figured out what's going wrong a little more than he did...read on!)
    his solution, to put mainstage in jump mode, is very unsatisfactory to me, as it bounces all of a sudden to drastically different settings.
    basically, my analysis is that my controller is NOT receiving MIDI date from mainstage.  in other words, mainstage knows what my controller is doing, but my controller doens't know what mainstage is doing.
     let's say i turn the knob all the way to the right ... 127...and the virtual fader goes to the right like it's supposed to. 
    now...next...let's say i change to a different patch, where that same VIRTUAL fader is not at the max clockwise position..maybe it's only at 1pm.  now when i turn the physical knob to the RIGHT, the midi data is still at 127 on the controller!  it didn't "reset" to sync up with the new level (say 80 or so) setting on the new patch.  so i can't increase that new setting of 80 by continuing to turn the knob to the right.  i have to turn it all the way to zero,...and then continue PAST zero until the controller thinks that IT is at 0...at that point the controller and mainstage are in agreement, and things work fine....so bascially, the keyboard thinks the level is at max...but mainstage thinks the level is at 1pm.
    i am using Logic 9, and i have a macbook pro 2.9 Ghz I7 with 8 gigs of memory and OS X 10.8.4

    Hi Josh,
    Thanks for taking the time to contact us here a Novation for technical support. Lets continue to correspond via email so we can get your issue resolved.
    Thanks.
    Mike Towns

  • How do I make a form field validate that it is the sum of two other fields?

    Hi there,
    I am creating a form, and I would like one of the fields to validate by making sure that this field is the sum of two other fields in the form.  Does anyone have any ideas on how to go about this?  I know I'll need to run a custom validation script, but I'm not sure where to begin - I've never done one for validation before.
    Thanks for any help!

    OK, here's a sample script that I hope will clearly demonstrate the general approach. It is intended to be the custom Validate script of the field that the user enters that value that is supposed to be equal to the sum of the two others.
    // Custom Validate script
    (function () {
        // Get the value that the user entered
        var sVal = event.value;
        // If it is blank, do nothing else
        if (!sVal) {
            return;
        // Convert string to a number
        nVal = +sVal;
        // Get the values of the fields, as numbers
        var v1 = +getField("text1").value;
        var v2 = +getField("text2").value;
        // Add them together, rounding to two decimal places, converting to number
        var sum = +util.printf("%.2f", v1 + v2);
        // Compare entered value to the sum of the other two fields
        // Alter the user if they do not match
        if (nVal !== sum) {
            app.alert("The value you entered does not equal the sum of text1 and text2. Please correct.", 3);
            // If you want the entered value rejected, include the following
            event.rc = false;
    Replace "text1" and "text2" with the actual field names.

  • Can I use my 2TB WD My Book Essential for the Time Machine feature on the MacBook as well as two other Windows computers (one running 7 and one with Vista)?

    Can I use my 2TB WD My Book Essential for the Time Machine feature on the MacBook as well as to store information from two other Windows computers (one running 7 and one with Vista)?

    Yes you can but you need to partition the drive into at least 2 separate drives.
    To do that you need to use a Windows PC to do the first partitioning. Say you split the drive into two partitions each 1TB (or close to 1TB) each.
    Partition fand format both partitions on a Win PC as one NTFS and the other FAT32.
    Then move it to the Mac and Reformat the FAT32 partition Mac Extended (Journaled) with a GUID Partition Table.
    I have that same drive and that is what I did originally with it. I now have it just for the Mac as I have other externals for the Win systems.
    Good Luck.

  • How do I add a desktop link to gmail?  I have one email account as my safari home page because it has trouble with apple mail, but I want a one-click link to two other email accounts.

    How do I add a desktop link to additional email accounts?  I have one email account as my safari home page because it has trouble with apple mail, but I want a one-click link on my desktop that takes me to two other email accounts.

    Can you set up a rule in your old account to forward mail to your new account and then delete it from the old account?
    (1012)

  • I live in a home with two other people, and one housemate tried to sync up his content from iTunes and iCloud onto another housemate's new iPad. the iTunes library only contains my content. is there any way to retrieve the there person's iCloud?

    i live in a home with two other people, and one housemate tried to sync up his content from iTunes and iCloud onto another housemate's new iPad. the iTunes library only contains my content. is there any way to retrieve the other person's iCloud? Can they go out of my account? Their content is saved on their iPads, but can another iCloud be on the same home computer?

    The syncing of music is one way, computer to phone. See this helpful document from a fellow user. Credit goes to the author.
    https://discussions.apple.com/docs/DOC-3141

  • How to add a new column in between two other columns

    I need to add a new column in between two other existing columns. Does anyone know how to do that? The ALTER statement adds the column at the end. Can someone give an example.
    Thanks
    Murali
    null

    There is no simpler way of doing this because it is not strictly necessary: you can always see your data in the order you want simply by going SELECT col1, col2, col98, col4, etc. Thus the column order only matters when you execute SELECT * FROM...
    If that really is important enough to you you'll have to drop and re-create the table, for which there are a number of different strategies.
    Your final comment suggests that you don't retain your database build scripts. If you did then rebuilding your constraints would be painless. There is a lesson there. The good news is that if you have TOAD (download from www.quest.com) you can generate DDL scripts from your existing schema.
    HTH, APC

  • How to watch a live broadcast show while recording two other shows

    If you have a TV with a QAM tuner built in and you use a splitter to connect the cable to the cable/antenna input of your TV while leaving a connection to the DVR, you will be able to watch a broadcast show live while recording two other shows on your DVR.  I tried this and it worked, but the channels I had access to (that seemed to be ones I was interested in) were basically the broadcast channels (in my area 3.1, 6.1, 10.1, 12.1, etc.).  Obviously you don't have access to the other features such as on demand, but it's handy to be able to handle three shows at the same time as long as one is on one of the channels available with the direct connection to your TV.
    Of course, this also provides a way to avoid the cost of additional set top boxes as long as you don't need access to the additional channels features like on demand.
    Bob S.

    OR if you're tv's older and doesn't have the qam tuner, you can hook up a HD antenna for 30 dollars, and if you live in an area that gets reasonable reception, you'll get something similiar to what you describe.
    both are good solutions.

  • Trigger a process chain(PC) after successfull completion of two other PCs

    Hi All,
    My requirement is to trigger a Process Chain only after successfull completion of two other process chain which are already scheduled to run at different times.
    Please tell me how to achieve this into SAP-BW 3.5
    Thanks
    Jharna

    Hi
    It is very simple, I'm doing the same.
    Insert Remote Process Chain at the end of the actual process chain and call the other process chain, here you need to give source , destination and process chain name in Remote process chain.
    try it, it will work.
    Thanks
    Reddy

  • I have an icloud account with two other users besides myself.  We share the same game center.  We want our own. My two children want their own Clash of Clans account!  What do I do?

    I have an icloud account with two other users besides myself.  We share the same game center.  We want our own. My two children want their own Clash of Clans account!  What do I do?

    Log out of Gamecenter and try downloading CoC again. if it doesn't prompt you with a new village, try downloading with a different apple id. if that doesn't work, you would need a new device to create a new village and transferring it to your sons device using the code in the CoC settings.

  • Adobe reader comes packed with two other programs

    I've downloaded Adobe Reader and its working just fine. The problem is, it seems to have downloaded two other programs with it: Adobe Acrobat and Adobe Air. Do I want these programs? What are they? Also, when I try to open Adobe Acrobat I continually have a box that comes up that says "Unfortunately Acrobat could not connect to the server to complete your action." So, do I want Acrobat? and if so, how do I make it connect to the server to register itself?

    Read about AIR at
    http://www.adobe.com/products/air/everyone/
    and acrobat.com (not to be confused with Adobe Acrobat, which is a
    program for making and editing PDF files) at
    http://help.adobe.com/en_US/Acrobat.com/Acrobat/
    You probably don't need them, but I shouldn't worry about them being
    there. I've found acrobat.com useful for file sharing.
    Noel

  • Update joining two other tables.

    Hi,
    I have a question on update of one table using two other tables.
    There are three tables: a_visitors(vis_str, vis_flag), b_hub(vis_str ), c_uv_xref(vis_str, user_str).
    And a_visitors.vis_flag needs to be updated with '1', '2' or '3'.
    1 - if there is a record in b_hub table exists where a_visitors.vis_str = b_hub.vis_str
    and a_visitors.vis_str = c_c_uv_xref.vis_str and c_uv_xref.user_str like *'%type_1%'*
    2 - if exists where a_visitors.vis_str = b_hub.vis_str
    and a_visitors.vis_str = c_c_uv_xref.vis_str and c_uv_xref.user_str like *'%type_2%'*
    3- if exists where a_visitors.vis_str = b_hub.vis_str
    Thanks a lot for your help !!!
    And here's the code
    CREATE TABLE "A_VISITORS"
        "VIS_STR"  VARCHAR2(20 BYTE),
        "VIS_FLAG" VARCHAR2(20 BYTE)
    REM INSERTING into A_VISITORS
    Insert into A_VISITORS (VIS_STR,VIS_FLAG) values ('aaa',null);
    Insert into A_VISITORS (VIS_STR,VIS_FLAG) values ('bbb',null);
    Insert into A_VISITORS (VIS_STR,VIS_FLAG) values ('ccc',null);
    Insert into A_VISITORS (VIS_STR,VIS_FLAG) values ('ddd',null);
    Insert into A_VISITORS (VIS_STR,VIS_FLAG) values ('eee',null);
    CREATE TABLE "B_HUB"  ("VIS_STR" VARCHAR2(20 BYTE)   );
    REM INSERTING into B_HUB
    Insert into B_HUB (VIS_STR) values ('aaa');
    Insert into B_HUB (VIS_STR) values ('bbb');
    Insert into B_HUB (VIS_STR) values ('fff');
    Insert into B_HUB (VIS_STR) values ('ggg');
    Insert into B_HUB (VIS_STR) values ('hhh');
    CREATE TABLE "CARAW"."C_UV_XREF" (
        "VIS_STR"  VARCHAR2(20 BYTE),
        "USER_STR" VARCHAR2(20 BYTE)
    REM INSERTING into C_UV_XREF
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('aaa','type_1');
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('aaa','aaaaa');
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('bbb','type_2');
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('ccc','ttt');
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('ddd',null);
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('eee','kkk');
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('fff','lll');
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('ggg','aaaaa');
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('hhh','aaaaa');
    Insert into C_UV_XREF (VIS_STR,USER_STR) values ('aaa','type_2');Edited by: lsy_nn on Sep 20, 2010 12:06 PM
    Edited by: lsy_nn on Sep 20, 2010 12:07 PM

    Hi,
    Thanks for posting the sample data.
    Don't forget to post the results you want from that data (that is, the contents of a_visitors after the UPDATE.)
    Here's one way:
    MERGE INTO     a_visitors     a
    USING  (
            SELECT    NVL (b.vis_str, c.vis_str)     AS vis_str
            ,          COUNT (CASE WHEN c.user_str LIKE '%type_1%' THEN 1 END)     AS type_1_cnt
            ,          COUNT (CASE WHEN c.user_str LIKE '%type_2%' THEN 1 END)     AS type_2_cnt
            FROM                 b_hub     b
            FULL OUTER JOIN  c_uv_xref     c     ON     b.vis_str     = c.vis_str
            GROUP BY  NVL (b.vis_str, c.vis_str)
           )                          bc
    ON     (a.vis_str            = bc.vis_str)
    WHEN MATCHED THEN
    UPDATE  SET  a.vis_flag     = CASE
                        WHEN  bc.type_1_cnt > 0  THEN  '1'
                        WHEN  bc.type_2_cnt > 0  THEN  '2'
                                                    ELSE  '3'
                          END
    ;

Maybe you are looking for

  • Manage-bde -forcerecovery

    Hello, I issued manage-bde -Forcerecovery c: command to test BitLocker Recovery. Now i have to enter Bitlocker Recovery Key on Every single restart. Does any body tested this, what is the default behaviour of manage-bde -forcerecovery c: , Also how i

  • Change sorting of pdf-files

    How can I change the sorting of the pdf-files ? Now it is: L1.pdf , L11.pdf , L12.pdf , ... L2.pdf , L21.pdf ... , L3.pdf , L31.pdf etc. I want to get L1.pdf , L2.pdf , L3.pdf .... L10.pdf ... L11.pdf etc. Thanks for help. Dieter

  • Trying to reduce a rational

    Hi, I am trying to reduce a rational to its lowest terms after certain arithmetic operations are performed (i.e. add two rationals, subtract two rationals, etc...). I think I have the algorithm but I cannot implement it. It has to be a private instan

  • Program Monitor playback resolution

    In the program monitor 1/8 and 1/16 are grayed out.  How do I enable them?

  • Seemingly undeclared cursor in Oracle seeded package

    Hi, I am hoping somebody can help me, we are having an issue with the function: APPS.pqp_gb_osp_functions.get_abs_plan_ent_days_info There is a cursor in this function that returns the absence days, but I cannot find where this cursor is declared, ca