Calculator Anomaly?

I have a weird Apple Calculator anomaly that I'm hoping someone can clarify. I have seen it in both "Basic" and "Scientific" mode using Reverse Polish Notation (RPN) which can be found under the View menu. Precision is set to the maximum 16 decimal places.
The apparent problem is that calculations are rounded unnecessarily. For example, typing the following results in a value of 3:
.75 enter
2 +
My expectation is that the answer is 2.75 given the entries and that the precision is set to 16. Is there something about Calculator or its RPN implementation that I don't understand?
Any insights would be greatly appreciated.
G5 DP2GHZ, PB G4 12   Mac OS X (10.4.8)  

My expectation is that the answer is 2.75 given the entries and that the precision is set to 16. Is there something about Calculator or its RPN implementation that I don't understand?
You're correct, under RPN the sum value seems rounded up (or down if you enter for example .3 enter 2 +). I'll make a technical post on the lvl 4/5 area of the forum and hope it gets some notice.

Similar Messages

  • Weird Calculator anomaly

    I have a weird Apple Calculator anomaly that I'm hoping someone can clarify. I have seen it in both "Basic" and "Scientific" mode using Reverse Polish Notation (RPN) which can be found under the View menu. Precision is set to the maximum 16 decimal places.
    The apparent problem is that calculations are rounded unnecessarily. For example, typing the following results in a value of 3:
    .75 enter
    2 +
    My expectation is that the answer is 2.75 given the entries and that the precision is set to 16. Is there something about Calculator or its RPN implementation that I don't understand?
    Any insights would be greatly appreciated.

    My expectation is that the answer is 2.75 given the entries and that the precision is set to 16. Is there something about Calculator or its RPN implementation that I don't understand?
    You're correct, under RPN the sum value seems rounded up (or down if you enter for example .3 enter 2 +). I'll make a technical post on the lvl 4/5 area of the forum and hope it gets some notice.

  • Time calculation anomaly

    On 11/04/2007 right after midnight calculation of time at midnight (00:00:00) since epoch gave me a value of 1194148800. The same calculation in the morning of 11/04/07 (I suspect it might have started after DST switch) showed 1194152400 -- 3600 higher. I am totally baffled by this. Why would elapsed seconds at midnight since epoch would be affected by DST? The following code sample shows what I was doing:
    #include <stdio.h>
    #include <time.h>
    int main()
    time_t now = time(0);
    struct tm nyNow;
    if (localtime_r(&now, &nyNow) != 0)
    nyNow.tm_sec = 0;
    nyNow.tm_min = 0;
    nyNow.tm_hour = 0;
    time_t midnight = mktime(&nyNow);
    fprintf(stderr, "Midnight: %d\n", midnight);
    return 0;
    I'd like an explanation. Thanks. -- Rajiv

    Sure it can. You have asked for the epoch converted for two different times.
    Just as if I asked for midnight Eastern and midnight Central, they'd be off by an hour. You asked for midnight EST and midnight EDT. They are also off by an hour.
    The first time you asked for was 2007-11-03 0:0:0 EDT, the second time was 2007-11-03 0:0:0 EST. Now your particular location would not normally be using Eastern Standard Time for that particular midnight, but it is still a valid identifier, and it occured one hour later. So the epoch identifer you converted was 3600 higher.
    Darren

  • Row size anomaly...

    Hi,
    I am observing some row size anomaly which is causing a table to grow enormously. The table is a partitioned table. The size of row as calculated from dba_tab_columns is 2338 bytes. The average length of the row is 379 bytes, calculated by querying dba_tables. The table is analyzed just before calculating any of the values.
    To calculate the size of a row manually, I have taken count of a particular partition then divided the size of the partition with that count. The result is showing the size of a single row to be around 1.9MB. This is applicable for most of the rows of that table. This kind of behavior is not observed with other tables residing at the same tablespace as that of this one.
    I would be grateful to all of you if this anomaly is explained to me.
    Thanks in advance for your valuable time.....
    Database: 10.2.0.4
    OS: UNIX
    Environment: DWH, Production
    Regards,
    Joy

    Hi,
    I am having a similar question.
    The Verison is
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE     11.1.0.7.0     Production
    TNS for Solaris: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    The Blocksize is
    SQL> SELECT name,value
    FROM v$parameter
    WHERE name = 'db_block_size'
    NAME VALUE
    db_block_size 8192
    1 row selected.
    The lenght in total of the table is
    SQL> select sum(data_length) sum_data_length from dba_tab_columns
    where owner = 'SIEBEL' and table_name = 'EIM_ACCNT_UT'
    SUM_DATA_LENGTH
    27131
    1 row selected.
    The avg_row_len and the chain_cnt is
    SQL> select num_rows,avg_row_len,chain_cnt from dba_tables
    where owner = 'SIEBEL' and table_name = 'EIM_ACCNT_UT'
    NUM_ROWS AVG_ROW_LEN CHAIN_CNT
    173 356 5223
    1 row selected.
    My questions are:
    1.) is the value of 27131 Bytes as records lenght as I counted it, rigth or wrong ?
    2.) is it a good advice to define a records of a length of 27131 Bytes whilst we have a DB-Block-Size of 8192 ?
    After my point of view, fragmentation there is the consequence of relation record_lenght vs DB-Block-Size.
    Best Regards,
    rueisel

  • Wrong Dearness Allowance Calculation

    Dear Friends,
    For Dearness Allowance(wagetype 1009) we maintain the %age of Basic(wagetype 1000) in V_T539J quarterly. Accordingly in Payroll processing it is reflected.
    In April 2014, for payroll area X it is calculated correctly,But for another payroll area Y all employee's DA calculation is wrong, It takes neither recent %age of basic
    nor that of previous quarter.
    For this month's payroll we did the correction manually in IT0008 by calculating DA= 20.2% of basic . Then there's no meaning of maintaining it in V_T539J. It's very tedious to do it manually.
    Need to know why this anomaly rises suddenly ? We don't use any BDC/ DA-report program to update DA in IT0008 rather from V_T539J only it is calculated.
    Regards,
    Nayak

    hi,
    kindly check the table and dates in v_t539j in expand mode or in se11 so that you can able to understand if any issue in time of delimit..
    or the check the employee data if some emploee data can be overright and check the indirect evaluation indicator I is visible........
    bala

  • Tax Calculation of free goods

    Hi
    We have a requirement where the client wants only VAT to be posted in GL accounts and not the price.For this I tried free goods condition type R100 with AltCBV 28.But the VAT value is also coming zero. I want the VAT to be calculated on Pricing condition and then give 100% discount.
    Apart from this I also tried to make pricing condition statistical and calculate VAT on it but then also system gives zero value for VAT.
    Also wondering if the scenario can be addressed with Free of Change Dellivery.

    Hi
    Normally in scenario where you are dealing with samples , there are cases you have to charge only TAXES / EXCISE part.
    Here my SUGGESTION is you can handle this through a simple sales order process, where you have to configure a new pricing procedure.
    1. Create a new document type to handle samples.
    2. Create a New pricing procedure where you can keep the basic price condtion as Statistical and rest all same as wht is is there your main pricing procedure. Just juggle with the TO-FROM to capture the TAX part in the total.
    3. Doc pricing procedure will help you to pick the new Pricing procedure
    4. Now Process this as a normal sales order
    5. This new document type will help you to have a proper reporting.
    The only constraint here is USER has to punch a fresh order seperately for such scenario. He cannot give a free good in the same sales order which is used as standard.
    The other way is you can configure a FREE GOOD Determination procedure as suggested  where you need to then have your Single pricing procedure accomodating the same scenario.
    Thanks
    RB

  • IF statement in Calculated Field for Share point, doesnt calculate sum in my Excel Pivot table.

    Hi Everyone
    I used this in SP calculated column field.
    =IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
    Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
    Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
    Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
    Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))    
    it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
    Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
    Thanks,
    Norman

    Hi Everyone
    I used this in SP calculated column field.
    =IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
    Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
    Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
    Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
    Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))    
    it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
    Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
    Thanks,
    Norman

  • If statement in Custom Calculation Script

    I have 16 fields and if even one of them ="1" I have to list it in another field.  I do not want to count or sum.  If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
    Please help.
    Thank you in advance~mjc

    You need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
    Do you know how to write JavaScript?
    Do you know how to enter JavaScript calculations into a form field?
    For custom calculation of the text field I could write something like:
    // define an array of the field names to check
    var aNames = new Array("Text1", "Text2", "Text3", "Text4",
    "Text5", "Text6", "Text7", "Text8",
    "Text9", "Text10", "Text11", "Text12",
    "Text13", "Text14", "Text15", "Text16");
    // define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
    var bMatch = false;
    // value for text field
    var TextValue = 0;
    // logical value of field being equal to 1 test
    var FieldIs1 = false;
    // loop through all the fields and test the fields value
    for(i = 0; i < aNames.length; i++) {
    // logically OR the result of field i value equal to true with bMatch
    // get the value of field
    TextValue = this.getField( aNames[i] ).value;
    // test the value of the field
    FieldIs1 = Number(TextValue) == 1
    // logically OR the 2 values
    bMatch = FieldIs1 | bMatch;
    } // end field processing
    // set the field value
    if(bMatch == true) {
    event.value = "Y";
    } else {
    event.value = "N";
    You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names.

  • If statement in calculated batch characteristic (dependencies)

    I have a little problem with calculating a certain batch characteristic.
    The situation is the following:
    I have batch char A, batch char B and batch char C. Batch char C is the result of the sommation of char A and B. The problem I have now is that batch char C only should be calculated when batch char A and B are different from 0.
    I have a custom build interface that imports QM data to the batch chars. Default, all my batch chars are set to 0 so if I just say $self.charC = $self.charA + $self.charB, I always get a value.
    Is it possible to some sort of IF statement to check if the value is different from 0?

    Dear,
    You need to try with variant table
    take all the combination and enter in a variant table and see the result...it works
    example
    A     B      C
    0      0      space
    0      1      sapce
    1      1      space
    I hope you got it

  • Pension not calculated when EE is hired mid-month

    Hi All
    Please suggest for the following....
    When an Employee is hired in the middle of the month, the system doesn't calculate Pension Contribution.
    Like if an EE is hired on 10th April. The system will calculate all payments & deductions, but it is not calculating the Pension Contributions.
    I am maintaining IT 169, 171 for Pension Contribution.
    The problem I found behind this is.....(WIth the help of an ABAPer)
    -: System checks the Payroll Period Start Date with the Org. Assignment start date. When it doesnu2019t match, the system does not calculate the Pension Contribution.
    For the time being I solved this through the following action -: In debugging, I canceled this condition (skipped this check). Then it calculated the Pension Contribution.
    But, this is not the right solution for achieving that as we are changing standard SAP coding.
    Please suggest any solution for the same.
    Thanks & Regards

    If your schema has p0169 with BEG that will happen, try put below Param1 which fits your requirement.
    BEG                                                                               
    Infotype records are evaluated on the payroll period begin date.        
    No changes within the current payroll period are taken into             
    consideration.                                                          
    No proration of contributions takes place, even if the record ends      
    within the current payroll period.                                                                               
    END                                                                               
    Infotype records are evaluated on the payroll period end date.          
    No changes within the current payroll period are taken into             
    consideration.                                                          
    No proration of contributions takes place, even if the record begins    
    within the current payroll period.                                                                               
    CHK                                                                               
    Infotype records are evaluated on the payroll check date (the pay date),
    regardless of whether the check date falls into the payroll period      
    itself.                                                                 
    A record whose validity starts after the end date of the current payroll
    period is still evaluated if the check date (which lies in the future)  
    falls within the validity period of the infotype.                                                                               
    FRST                                                                               
    Infotype records are evaluated if there is any intersection of plan     
    infotype and payroll period. The first intersection is taken to         
    determine the full period deduction amount which is stored without      
    proration.                                                                               
    LAST                                                                               
    Infotype records are evaluated if there is any intersection of plan     
    infotype and payroll period. The last intersection is taken to determine
    the full period deduction amount which is stored without proration.

  • Mid-Month Calculations

    I am bringing a fixed asset system online in SAP and during the legacy conversion it was realized that the test system is not calculating the depreciation using a mid month convention.  That being said looking at the configuration the company code was setup in 2005 and is in production and is productive (since 2005).  So it appears that this setting is global and SAP will not allow me to change these settings to allow mid month calculations.  Is this correct? anyone ran across the same issue.

    Hi
    please read the note 2993 and 39416!
    Best Regards,
    Blaz

  • Mid month action_Pension (/3f4) calculation wrong

    Hi All,
    I get one problem , when payroll run for employee, whose action run in the mid of the month. for ex. 15.05.2010(Transfer action)
    In that case the pension amount (/3f4) is calculating double or more than 541...which is wrong.
    Kindly provde the input to resolve the same....
    Regards,
    Mahesh
    Edited by: Mahesh Shewale on Sep 1, 2010 1:08 PM
    Edited by: Mahesh Shewale on Sep 2, 2010 7:18 AM

    Hi Mahesh,
    Please make changes in User exit provided as per your requirement and then check the results
    There are 2 user exit
    EXIT_HINCALC0_002 for pension basis.
    EXIT_HINCALC0_007

  • ''Prepare interest on arrear calculation''

    Dear Sap Gurus,
    Under Prepard interest on arrears calculation there are 4 options available 1. open and all cleared items, 2.open items and items cleared with payment, 3.no open items -all cleard items, 4.no open items -only items cleared with a payment. My doubt is When and where we have to use these options. Could you explain with examples.
    Thanks in advance
    Thanks&Regards,
    Periasamy.M

    Usuallu we select Open and All Cleared Items
    Remaining options purely based on the client interest calculation requirements.

  • Interest calculation

    Hi
    I hv configured the interest calculation as shown below
    1.Define interest calculation type (item interest calculation)
    2.Define number ranges for interest forms(for xxxx company code)
    3.Prepare Interest on Arrears Calculation(selected open and all cleared items, calender type F)
    4.Define reference interest rates
    5.Define Time-Based Terms
    6.Enter Interest Values
    7.Assign Forms for Interest Indicators
    i have made postings in customer both open and cleared items for testing
    but i got message"list contains no data"
    do i need to make any other config.
    useful answers would be rewarded with points
    Regards
    Prasad

    Hi Prasad
    PLease check whether Customer master records are assigned with correct "Interest Indicator" at company code data.
    Best reagards,
    S. Habib Pasha.

  • Interest calculation on Open items and cleared items

    Dear Experts
    I am trying to do needful configuration for interest indicator on which interest can be calculated for open items and cleared items as well.  But,  system is calculating interest for open items properly, but not calculating interest on cleared items with same interest indicator,  I am repeatedly getting error "interest calculation indicator is not compatible with this type of interest calculation"
    Is it possible to use same interest indicator for open line items and cleared line items of customer?
    If possible, request you share the needful config steps to do same.
    points will be awarded for usful reply.
    Best regards,
    S. Habib Pasha.

    Hello Habib,
    depending on the requests you can setup a item interest calculation or a balance interest calculation "Define calculation types".
    IIC: check settings (item selection, all cleared items, only items with payment, no cleared items) "Prepare item interest calculation"
    I guess you have setup the item interest calculation - maybe you have mixed some entries with BAIC.
    Check in "Prepare account balance interest calculation" whether you have entries with the indicator you want to use.
    At least check your entries in "Define time-based Terms" If you have entries with Balance account interest calculation the system gives even an error.
    Hope this is helpfull.
    Best regards
       Horst

Maybe you are looking for

  • Convert pdf in preview to msword doc

    Have a pdf sent through email and it opens in mac's preview program. How do I convert this pdf to a msword doc/file? thx deb

  • S2240L, faulty audio output

    Hi, i am connecting a speaker to my Dell S2240L monitor audio out jack port. However, only can hear sound from right speaker it was fine last few days. I had tried to plug in other speaker then output still the same. i also changed another HDMI cable

  • PROBLEMS WITH THE RANGE OF THE ROUTER

    I have a router in my home, but i just can get connected to the internet only in the livingroom. The problem became by the range of the router. So i would like to know if buying the "Airport ExtendAIR Omni de Dr Bott" i should have internet in my lit

  • Curve clearing messages on the device, only see messages from the last two days

    A few 8310's I have here are flushing the message box messages from the device even though the "keep messages" option is set for 6 months.  These devices were deployed in April and now are wiping all messages up until 2 days ago. The owners of the de

  • SPL SDK for CC&B - tutorial or any student guide

    I'll have to do some customization of CC&B software. Unfortunatly the standard SDK documentation seems to be quit difficult to me for understand. I did not found anything like a simple Hello World application, that I can do and see the result in SPL