Oarcle Lite cannot subtract negative numbers from date

Hello
we have a very strange problem. We have a query that need to convert times between different timezones. So, we have
In Oracle lite, the query
select sysdate - (-60/1440) nd from dual returns sysdate + 2 - 60/1440.
Whenever a negative fraction is subtracted from date, it always adds two days and then adds the fraction. Looks like negative of a negative fraction is not handled correctly in oracle lite.
Did anyone encounter this problem? We have the system in production and wondering if anyone found a solution.
Thanks

HI sd,
I suspect there's a simpler way, but this works, as seen in the example. Start and finish times are both incremented by one day as the data and formula are filled down the columns to show the effect of crossing the weekend days. Formula (as it appears in row 7) is shown above the table. The Row 2 version is copied below. Cels in column D are formatted as shown in the Inspector.
D2: =NETWORKDAYS(B2,C2,)+DURATION(,,24*(DUR2DAYS(C2-B2)-INT(DUR2DAYS(C2-B2))),,,)
Regards,
Barry

Similar Messages

  • CAS fails when subtracting negative numbers from stack

    The CAS fails to subtract negative numbers. Here is how to reproduce such errors:1) generate a negative number from any operation1 - 22) subtract any number from this previous result2.1) enter any value12.2) press the subtract key, select the previous value from the stack, and copy it- (touch the previous "-1" which results from "1 - 2") (touch "copy")2.3) press ENTER Other variation:cos(-π)*ENTER*, results in -11 --1*ENTER* The issue is negative numbers are being preceded by a subtraction sign instead of a negative sign, and both are treated differently by the software. The bug does not occur in home mode.

    Hello, Maké, Thank you! My report is that of a bug, not a device misuse. Particularly, a(nother) CAS bug. HP Prime's CAS is substituting binary subtraction signs for negative signs when printing results. Entering -1 in Home yedls -1, while in CAS one gets −1. See: the lengh of the dash symbol is different. Kind regards.

  • Subtract business days from date - calculated column

    Hello,
    I had a calculated column on a library that took two dates and found the difference between them in business days, but I am not sure how to subtract business days from a date...for instance I get a start date from a form and I need to
    subtract 10 business days from that date.
    Can anyone help?

    I've always resorted to Javascript/JQuery for that kind of function. I found an old fashioned loop worked the best for me - it supports going forward or backwards. I key it off of a change in a starting date, or sometimes a status change. My actual production
    code takes into account another list where we remove holidays and non-work days.
    newDate = getNextDate(newDate, -3);
    $("input[title='Date Due']").val((newDate.getMonth() + 1) + "/" + newDate.getDate() + "/" + newDate.getFullYear());
    function getNextDate(currentDate, offset) {
    // offset is business days
    var wkend = 0;
    var index = Math.abs(offset); // need positive number for looping
    var neg = true;
    if(offset >= 0) { neg = false; }
    var curDOW = currentDate.getDay();
    var nextDate = new Date(currentDate);
    for(var i=1; i <= index; i++) {
    nextDate.setDate(nextDate.getDate() + (neg ? -1: 1));
    var nextDOW = nextDate.getDay();
    if(nextDOW == 0) {nextDate.setDate(nextDate.getDate() + (neg ? -2: 1));} // Sunday
    if(nextDOW == 6) {nextDate.setDate(nextDate.getDate() + (neg ? -1: 2)); } // Sat
    // alert("offset is " + offset + "start: " + currentDate + ", next date is " + nextDate);
    return nextDate;
    Robin

  • Displaying Positive/Negative numbers from a formula

    I have the following formula that looks similar to this..
    (Field1) - (Field2)
    when field 1 is smaller then field 2 we know that the number will be a negative and the report will print a negative sign in front of the number.
    Now here is the question, say (Field1) was equal to 10, and (Field2) was equal to 9 the formula would look like
    (10) - (9)
    and the report would print a positive 1.   Is there anyway to format the formula to display a Positive sign in front of the number if it is positive, and a negative in front of the number if it is negative?
    Thanks everyone for your help!

    Yes, that formula works for me.  I had to slightly modify the formula because it was printing two negative signs on ther report instead of one.  I think that may have been due to how I had my number formatting options set in Crystal.
    Here is the original formula:
    numbervar a:=0;
    a:=(Field1)-(Field2);
    if a >= 0 then
    "+" & (a) else " -" & (a);
    Then I changed it to be:
    numbervar a:=0;
    a:=({@JM_ClaimAmt})-({Reconciliation_GetReport;1.UPCClaimAmt});
    if a >= 0 then
    // Took out the negative sign here so it would not show negative twice.
    "+" & (a) else " " & (a);
    It works now, I'm happy

  • Cannot dial outbound numbers from UC320

    Hi, I've recently made some config changes with regards to the network on my UC320.  I think these are all fine, as the unit is recieving calls, even forwarding them out of the office and remote access as well as internal access to the unit is fine.
    Internal calls are fine, the only issue is when I press the access digits for the FXO or the SIP trunk the SPA phone just says Invalid number!                  
    Any ideas apprecaited!

    Hi Chris,
    Have you changed the system from Blend or PBX to Key system? Please make sure the access digit is still defined in "Internal Dialing" and "Outbound Trunks" page in Configure Utility.
    If these pages look fine, please contact the Small Business Support Center at the phone number listed (Please pick the appropriate phone number in your region) in the link attached? One of our engineers should be able to assist you.
    http://www.cisco.com/en/US/support/tsd_cisco_small_business_support_center_contacts.html
    Best regards,
    Wendy Yang

  • Cannot display more than 16 significant digit numbers from Oracle

    The WebI Report cannot display more than 16 significant digit numbers from an Oracle data type field.
    This occurs for both an ODBC and native driver connection to Oracle.
    The data is defined by Number Data Type in Oracle, and view correctly in Universe, but display incorrectly in WebI report which created by InfoView.
    I know BOE XIR2 has this behavior, but it seems that XI3.0 and XI3.1 also have this problem.
    If this behavior in XI3.0 and XI3.1 perform by design? or it's a bug? and Why?
    Thanks!

    Hi Sarah,
    Precision limitation of a Web Intelligence filter constant :
    In an Oracle database, a Number field type can store up to 38 digits. When creating a Web Intelligence report in the Java Panel, a condition is specified for this field (that is represented in the universe as a number), and a constant number is entered for its value, only up to 15 digits of precision are retained.
    For example, if 1234567890123456789 is entered, the value becomes 1234567890123460000.
    Or, if you have a column in database which has a number like 123.123456789012345678 it will display only 123.123456789012.
    Cause
    The reason for this limitation is that Java Panel represents a number internally as a Double field type with only 15 digits precision. This is by design.
    Resolution
    The only workaround is to change the field type to a Character field; however, doing so means losing the ability to perform calculations and/or sorting on the field.
    This issue has been raised as an Enhancement Request and given Track ID # ADAPT00908702.
    Regards,
    Deepti Bajpai

  • Cannot Delete Articles from Data manager..

    Hi Guru's,
    WHile delting record s from Data Manager I am getting Error
    " Insufficient disk space available on DBMS" and as a result i cannot delete reocrds..
    What could be the issue?
    Please let me know if ican take help of our Basisi admin team .. Or Is there anything that i can work out in MDM..
    Regards,
    Vikrant M Kelkar..

    Hi everyone,
    Got it .. It was isseu because the table space was full and it ddnt allow me to further delete articles..
    Increased Table space and its ALl Good now..
    Thanks all ( whoen=ver reads this thread)
    Regards
    Vikrant M Kelkar

  • I cannot get Elemtnts 13.1 to download completely.  I have three different case numbers from Adobe and nothing helps.  I always get the "download failed" and the error code u44m1i210.

    I cannot get Elements 13.1 to download completely.  I have 3 different case numbers from Adobe and nothing helps.  I always get the "download failed" and the error code u44m1i210.  I would either like to get the product downloaded or eliminate the constant attempt which just ties up my computer.

    You could try the direct download links here
    Adobe Photoshop Elements 13 Direct Download Links, Premiere too | ProDesignTools
    And here is some info on that error code
    Error U44M1I210 | Install updates

  • Getting error "Cannot create a BACPAC from a file that does not contain exported data." from SqlManagementClient.Dac.ImportAsync

    We're trying to import a dacpac to azure via the new SqlManagementClient DacOperations ImportAsync api I get an exception with the error: "Cannot create a BACPAC from a file that does not contain exported data."
    This same dacpac imports fine using an alternate but less friendly API from sql server's tooling. We'd like to use the new management SDK instead for various reasons.

    Hi Kyle A Wilt,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Photos recently changed from sequential numbering to date/timestamp.  When I import into apps for editing they are out of order.  What can be done to change back to sequential numbering instead of date/timestamp?

    Photos recently changed from sequential numbering to date/timestamp.  When I import into apps for editing they are out of order.  What can be done to change back to sequential numbering instead of date/timestamp?

    The date information is taken from the camera which writes it to the file. This needs to be set to the correct date and time in the camera itself.
    The order the images are shown in the Library mode is set by clicking on the sort button in the tool bar, which if not showing can be activated from view, tool bar. There are different sort orders that can be applied including sorting by file name. You can also sort by dragging the images to the order you wish them to appear in by selecting user order.

  • Negative Numbers considered as VARCHAR while uploading CSV file under Data Load in APEX

    I am trying to upload a CSV file which contains negative numbers. These negative numbers are being considered as VARCHAR2 while uploading. And if I change the Column Type to Numbers the upload fails.
    Any solutions the problem will highly be appreciated.

    select * from nls_database_parameters
    where parameter = 'NLS_NUMERIC_CHARACTERS'
    shows you which characters your database believes represent the decimal place and the thousands separator. So, if your database expects 1,234.123 and you present a 'number' as 1 234,123 it will complain.
    Also, in your case... your comma-separated-values contain commas? Or are the individual fields enclosed with quotes?

  • I connect my pendrive to macbook pro but it cannot detect and my important data is there in my pen drive so how can i collect this data from my pendrive?

    i connect my externalpendrive to macbook pro but it cannot detect and my important data is there in my pen drive so how can i collect this data from my pendrive?

    make sure that in your finder preferences you have it checked to show external drives on the desktop and in the sidebar of finder
    you find these preferences by selecting the finder icon (blue square on the dock w/ smiley face on it) then click on the work "finder" at top left corner of computer screen then click on preferences then general and put check next to show these items on the desktop and put check next to external drives
    now you should see it on the desktop if you still can't open the drive or access it, it may be in format the mac can't read or write to so that could be an issue.

  • How to subtract n years from a date

    Hi all,
    I need to subtract n years from a given date..
    for example
    if date is 21.07.200<b>6</b>.. if i want to subtract 2 years (n years) i should get 21.07.200<b>4</b>

    hi,
    FM.
    CCM_GO_BACK_MONTHS
    Example
    Data : Lv_current_date type dats,
           lv_new_date     type dats,
           lv_no_months    type NUMC3.
    Lv_current_date = sy-datum.
    lv_no_months    = 12 * 2.
    CCM_GO_BACK_MONTHS
         IMPORTING
             CURRDATE   = Lv_current_date
             BACKMONTHS = lv_no_months
         EXPORTING
             NEWDATE    = lv_new_date.
    Reward Points & Mark Helpful Answers.
    to reward points ;click radio button next to the post.
    select radio button as per the answers.

  • Cannot enter numbers from num pad or keyboard

    Cannot enter numbers from the number pad or the keyboard.

    That's an odd one, alright! When you state "format" I presume you're not somehow inserting the hyphen, correct? You're dialing 5551234 or 5555551234.
    If a Restore does not correct the problem, presumably a Reset will not either, but try that (reset is press and hold the sleep/wake and home buttons until the Apple logo comes up (~10 seconds, ignore the slide to power off prompt, wait for the logo).
    Else, I suspect a visit to an Apple Store (or a call to AppleCare) is your best bet.

  • Cannot update my keynote, pages and numbers from my ipad. I have different accounts, one for app store and other for icloud. What can I do?

    Cannot update my keynote, pages and numbers from my ipad. I have different accounts, one for app store and other for icloud. What can I do?

    You can't merge accounts or transfer iTunes purchases from one Apple ID to another: but there is no problem about using two IDs.
    Use your iCloud ID for iCloud for syncing email, contacts, calendars, bookmarks, and PhotoStream.
    Use your other Apple ID as before for iTunes, iTunes in the Cloud and iTunes Match.
    There's no conflict about doing this, and you won't even notice as Keychain will log you in with the correct ID in each case. It's also better security not to have your iTunes login also your email address, given the number of complaints about hacked iTunes accounts.

Maybe you are looking for

  • Help required in reading properties file

    Hi, I have ApplicationResources.properties in one of my package say, aaa/bbb/ccc/ApplicationResources.properties I need to read this from a Java main class located in another package aaa/bbb/ddd/Info.java This is read to get the version details of th

  • HT1349 I have replaced the hard-drive and updated the operating system of my laptop computer.  How do I deauthorize computers I don't have anymore?

    I received an error message from iTunes store regarding my recent app purchase.  I already have 5 authorized computers so I can't sync the purchased app from my current computer. My problem is, within four months I replaced the operating systems to m

  • Create AAC version problems - songs cut off

    I am running the most recent version of iTunes on my laptop (11.3.1?...my laptop is at home, and I'm not) on Windows 8, but I think I've been having this problem since I was on Windows 7, and on previous versions of iTunes as well. I'm importing a bu

  • Sleep Problem - Microsoft Wireless Mouse

    Hi Folks! I have a MBP Unibody, summer 2009, and I installed Snow Leopard last week. My computer won't sleep unless I close the cover. I know what the problem is, it is apparently my Microsoft Wireless Laser Mouse, which is plugged into my USB port.

  • "Ghost" T-shaped shadow in screen?

    Hello, I've been reading quite a few discussions regarding a "ghost mark" in screens. I take extremely good care of my MacBook Pro (after all, it WAS over $1000!) and have not dropped it once. When carrying it in my backpack, I keep it in a padded ca