Round up error.

Dear All,
I have a issue in which i am calculating VAT by a particular logic now when i am dividing the values for VAT calculation
for larger values the number of digits after decimal point is proving critical resulting into answer which is different than the actual one by some value.
The simple way by which i can explain is for value say,
35756.25 / 5000.000     the actual value is             7.15125
but since i have declared that variable of type
ZSDSTR003-KBETR     it is truncating digits from 3 onwards after decimal point and
value is maintained as 7.15 and not 7.15125  which is causing my final answer to vary by a small amount.
Thanks 2 all
Ronak.

Hi,
declare ur price varaible as
data: kbetr type p decimals 5.
Regards

Similar Messages

  • Round off error?

    Hi,
    I'm playing a little bit with the trial version of Numbers, just to see if my good old Ti is still capable to run it properly before buying a full license of iWorks.
    By the way, it seems like there's some kind of round-off error. Try to build a series as follows: enter -10 in to a cell, then let Numbers build the series using the usual formula "previous cell value - 0.1". Apply a format so that only two decimal values are visible. Drag the formula and build twenty values (just to have some values). Now use the previous series and calculate its squared values. Then select some cells in the squared values column, starting from the first one: as soon as you include the squared value of -9.3 in the selection you will see that the data inspector will show a min value equal to 86.4900000000001 , which should be the squared value of +/- 9.3.
    Now, try to subtract 86.49 to that cell and you will see that the result is not exactly zero: you can try to calculate the inverse of it and, instead of an error, you get a very big (actually, not that big!) number.
    You can easily reproduce this weird behavior if you open Calculator and calculate the squared value of 9.3: until you set the precision up to 14, you get the correct value, you select precision >= 15, you get the round off value.
    So, it seems it is not a Numbers only related problem.
    Just for the record, I've just calculated the same value into Octave, and the result is correct (and different):
    86.4900000000000 (Octave)
    86.4900000000001 (Numbers)
    Yet not so serious, this kind of "numerical noise" might lead to annoying issues...

    HI SIR,
    WE CREATED ONE PO .IN THAT PO ITEM NO2 SHOWING NET VALUE AS 11.63 FOR MATERIAL CS PLATE WHER AS ITEM NO 5 SHOWING NET VALUE AS 11.62 FOR SAME MATERIAL AND SAME PRICING CONDITIONS.
    Hi ,
    Please check in item conditions whether have you entered discount conditions in line itenm 5.
    Regards,
    Vijay

  • Rounding off error between stock transport order and GR (Quantity)

    Hello,
    I would appreciate your help in an issue. Our customer uses stock transfer order in which a conversion rule was set. Since the transport company requires another unit, the purchase order is created in ton but MIGO is done with Megawatt Hour. SAP takes into consideration only three digits after comma. Therefore, a rounding off error occurs which can only be seen in MB52 but not in the transitsaldo MB5T. The difference or the missing quantity (i.e. 0,001 MH which is 0,0000xxx TON) can not be found and thus a GR can not be posted in MIGO either.
    If you have any idea how to solve this or if there is any OSS message on this, please post on this thread. I am waiting for your comments.
    Thanks,
    Esra

    Hi Ram Prasad,
    The note you suggested is very useful. I need to download the correction. When I use movement types
    557/558, I got the error that the transit saldo exceeded xxx MWH.
    PO = TON
    GI = 2,159 MWH
    GR = 2,157 MWH which corresponds to 0,459 TON
    Conversion rule= 1 TON = 4,7 MWH
    Do you know how to book 0,002 MWH away with these scrapping mov.types? This quantity is missing and is not shown in MB5T because this list functions with TON as far as I figured it out.
    Thanks a lot for your help.
    Esra Nilsson

  • Inforecord Rounding Profile error- RP not defined eventhough it is maintain

    Dear Gurus,
    I have maintained the Rounding Profile in the transaction OWD1. Yet, the inforecord does not display it in the dropdown list and I am getting the error 'Rounding Profile not defined in Plant'.
    Request your help in solving this.
    Regards,
    Sathish Kumar

    hi
    check out this spro path
    Materials Management --> Consumption-Based Planning --> Planning --> Lot-Size Calculation -->> Maintain Rounding Profile
    also check whether you entered any plant in that field.
    Edited by: AP on Mar 7, 2012 11:16 AM

  • Using currency format to round results (error cannot find symbol)

    Hi i have a small program that converts currency and want to round the numbers up to 2 d.p i have chosen to use the command
    numberFormat(txtOutput, "0.00");
    But i cannot figure out where to put it in my program as it just returns errors like cannot find symbol. Could anyone please help?
    this is the program that it is going to go into
    double x;
    double y;
    double z;
    x = Integer.parseInt(txtInput.getText());
    y = 0.748279;
    z = Double.parseDouble(txtExchange.getText());
    if (z > 0)
    txtOutput.setText('?' + Double.toString( x * z ));
    else
    txtOutput.setText('?' + Double.toString( x * y ));

    I now have this but it is still returning the error illegal start of expression for the line "import java.text.DecimalFormat;". And i have checked the braces and they appear correct
    import java.text.DecimalFormat;
            numberFormat(txtOutput, "0.00");
            DecimalFormat df = new DecimalFormat("0.00");
            double x = Integer.parseInt(txtInput.getText());
            double y = 0.748279;
            double z = Double.parseDouble(txtExchange.getText());
            if (z > 0){
                txtOutput.setText('?' + df.format( x * z ));
            } else {
                txtOutput.setText('?' + df.format( x * y ));
            }

  • Csv round off error

    I am getting all the values under the channel "calc G level" in the attached csv file as round off value when loaded in Table view in diadem.
    Kindly help to solve this issue.
    Solved!
    Go to Solution.
    Attachments:
    bHard Brake.csv ‏54 KB

    The CSV loader tries to guess the datatype of you column. So in your case it looks at the first lines and guesses int.
    in newer DIAdem versions this was changed to guess double instead of int.
    For DIadem 11.1 dataplugin ight be a solution.
    If you have a lot of those files you can use a dataplugin to access them. In them you can switch the channel type to double and it would work out. If I remember right 11.1 already had the dataplugin wizard that makes generating dataplugins easy.
    Hope this helps a little
    Andreas

  • Problem with Float - round down error

    I have to save in database (MySql) amount which is passed by user. For instance user writes 99999999999. But Float.parseFloat(request.getParameter("amoUnit")) returns value 9.9999998E10 . When I save this value in database I receive 99999998000.00. I want to have in database exactly what the user has written. Should I use differen data type? Thanks in advance.

    leonkaP wrote:
    ... I want to have in database exactly what the user has written. Should I use differen data type? Yes.
    If you want more precision than float, use double.
    If you want exact precision, use BigDecimal.

  • Round Value error

    hi,
    I have to calculate Salary into textfield .
    Problem is after Calculation salary amount 1230.3566678787 like this come into text field.
    i want only 1230.35 amount.
    How can i do this.
    Thanks

    hi,
    i am using java scrip to calculation after calculation value comes into text field.
    like 1230.7537647
    i want this in to text fild like 1230.75
    my java scipt
    <script>
    function multiplyItems(){
    function getVal(item){
    if($x(item).value != "")
    return parseFloat($x(item).value);
    else
    return 0;
    $x('P65_SALARY').value =getVal('P65_ADVANCE_PAYMENT')+
    getVal('P65_OVR_TM_AMT')+getVal('P65_BONUS') + getVal('P65_OTHER_CHARGES')-getVal('P65_LEAVE_AMOUNT');
    </script>How can i do that.
    Thanks

  • ROUND -OFF ERROR IN POs

    HI SIR,
    WE CREATED ONE PO .IN THAT PO  ITEM  NO2 SHOWING NET VALUE AS 11.63 FOR MATERIAL CS PLATE WHER AS ITEM NO 5  SHOWING NET VALUE AS 11.62 FOR SAME MATERIAL AND SAME PRICING CONDITIONS.

    HI SIR,
    WE CREATED ONE PO .IN THAT PO ITEM NO2 SHOWING NET VALUE AS 11.63 FOR MATERIAL CS PLATE WHER AS ITEM NO 5 SHOWING NET VALUE AS 11.62 FOR SAME MATERIAL AND SAME PRICING CONDITIONS.
    Hi ,
    Please check in item conditions whether have you entered discount conditions in line itenm 5.
    Regards,
    Vijay

  • FLASH ROUND ERROR

    The Function Math.Round Has errors try Round Number 1.265
    round in 1.26, when the correct answer its 1.27

    Come again... Math.round returns an integer.
    Math.round(1.265) will return
    1.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • CU5 to CU6 upgrade error

    Hello,
    Upgrading from CU5 to CU6 I ran into this error during the installation. Has anyone seen this before or knows a way round it:
    Error:
    The following error was generated when "$error.Clear();
    $name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
    $dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
    $dismbx = get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1;
    if( $dismbx -ne $null)
    $srvname = $dismbx.ServerName;
    if( $dismbx.Database -ne $null -and $RoleFqdnOrName -like "$srvname.*" )
    Write-ExchangeSetupLog -info "Setup DiscoverySearchMailbox Permission.";
    $mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
    if( $mountedMdb -eq $null )
    Write-ExchangeSetupLog -info "Mounting database before stamp DiscoverySearchMailbox Permission...";
    mount-database $dismbx.Database;
    $mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
    if( $mountedMdb -ne $null )
    $dmRoleGroupGuid = [Microsoft.Exchange.Data.Directory.Management.RoleGroup]::DiscoveryManagement_InitInfo.WellKnownGuid;
    $dmRoleGroup = Get-RoleGroup -Identity $dmRoleGroupGuid -DomainController $RoleDomainController -ErrorAction:SilentlyContinue;
    if( $dmRoleGroup -ne $null )
    trap [Exception]
    Add-MailboxPermission $dismbx -User $dmRoleGroup.Name -AccessRights FullAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue;
    continue;
    Add-MailboxPermission $dismbx -User $dmRoleGroup.Identity -AccessRights FullAccess -DomainController $RoleDomainController -WarningAction SilentlyContinue;
    " was run: "Microsoft.Exchange.Data.ApplicationLogic.Cafe.BackEndLocatorException: Server Locator Service call had a communication error. ---> Microsoft.Exchange.Data.Storage.ServerLocator.ServerLocatorClientTransientException: Server Locator Service call had a communication error. ---> System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://styx2.corp.alpha-data.com:64337/Exchange.HighAvailability/ServerLocator. The connection attempt lasted for a time span of 00:00:04.0683258. TCP error code 10061: No connection could be made because the target machine actively refused it 192.168.2.224:64337. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.2.224:64337
    at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
    at System.ServiceModel.Channels.SocketConnectionInitiator.ConnectAsyncResult.OnConnect(IAsyncResult result)
    --- End of inner exception stack trace ---
    Server stack trace:
    at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
    at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at ServerLocator.EndGetActiveCopiesForDatabaseAvailabilityGroup(IAsyncResult result)
    at Microsoft.Exchange.Data.Storage.ServerLocator.ServerLocatorServiceClient.EndGetActiveCopiesForDatabaseAvailabilityGroup(IAsyncResult result)
    --- End of inner exception stack trace ---
    at Microsoft.Exchange.Data.ApplicationLogic.Cafe.MailboxServerLocator.EndGetServer(IAsyncResult result)
    at Microsoft.Exchange.Data.ApplicationLogic.Cafe.BackEndLocator.GetBackEndServerByDatabase(ADObjectId database, OrganizationId organizationId, SmtpAddress primarySmtpAddress)
    at Microsoft.Exchange.Data.ApplicationLogic.Cafe.BackEndLocator.<>c__DisplayClass3.<getbackendserver>b__2()
    at Microsoft.Exchange.Data.ApplicationLogic.Cafe.BackEndLocator.CallWithExceptionHandling[T](Func`1 actualCall)
    --- End of inner exception stack trace ---
    at Microsoft.Exchange.Data.ApplicationLogic.Cafe.BackEndLocator.CallWithExceptionHandling[T](Func`1 actualCall)
    at Microsoft.Exchange.Management.RecipientTasks.SetMailboxPermissionTaskBase.PrepareDataObject()
    at Microsoft.Exchange.Configuration.Tasks.SetTaskBase`1.InternalValidate()
    at Microsoft.Exchange.Configuration.Tasks.SetRecipientObjectTask`3.InternalValidate()
    at Microsoft.Exchange.Management.RecipientTasks.SetMailboxPermissionTaskBase.InternalValidate()
    at Microsoft.Exchange.Management.RecipientTasks.AddMailboxPermission.InternalValidate()
    at Microsoft.Exchange.Configuration.Tasks.Task.<processrecord>b__b()
    at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".
    </processrecord></getbackendserver>
    Best regards,
    David

    Hi Amit,
    Thanks for your reply. I've just managed to fix it. Styx2 was the only Exchange Server in the DAG, and also the system CU6 was being run on. The comms error looks a bit odd given it's trying to talk to the computer it's running on, was about to look
    into the machine's firewall, but came across this post (for a different looking error message):
    http://social.technet.microsoft.com/Forums/office/en-US/00e1dcf7-15e1-4287-96c7-4ddb4218036b/error-with-cu6-installation?forum=exchangesvrdeploy
    We had IPv6 disabled in on all the network adaptors. Enabling it on one, and restarting the server then re-running CU6 seem to work. It ran to completion this time (or looks like it did, everything seems to be working that I've tested).
    Best regards,
    David

  • J1IEX Capture Excise Error

    Dear SAP Gurus,
    When we are Capturing Excise Invoice in J1IEX with ref to GR , then the system is throwing an ABAP run time error...
    Divide by 0 (type F) In program "SAPLJ1IEX"        Please suggest.

    hi
    check out this sap notes can help
    1360320 Enabling SED for import procurement (used for Health Cess) 10.08.2009
    2. 0.260 XX-CSC-IN-MM 1280234 Reduction of visible length of fields in J1IEX (ECC 5.0 &up) 03.08.2009
    3. 0.290 XX-CSC-IN 1346926 Disabling Excise invoice no & date in change mode in J1IEX 10.06.2009
    4. 0.300 XX-CSC-IN-MM 1164326 Cancellation of excise invoice is not possible through MIGO 29.04.2009
    5. 0.290 XX-CSC-IN-MM 1285986 Excise amount appears wrongly in Credit due column in J1IEX 12.03.2009
    6. 0.300 XX-CSC-IN-MM 1307617 RG23C PART2 & accounting entries posted from J1IEX not same 27.02.2009
    7. 0.410 XX-CSC-IN-SD 1254046 Maximum of 6 long texts possible in J1IEX for ARE1 creation 22.12.2008
    8. 0.240 XX-CSC-IN-MM 1155547 NCCD on customs duty in case of imports as per Budget2008 04.09.2008
    9. 0.240 XX-CSC-IN-SD 1014967 ECS and other duties in ARE1, ARE3 transactions and reports 25.01.2008
    10. 0.250 XX-CSC-IN 719154 Search help for subtransaction type along with its text
    1033650 Budget 2007-08 (SECess) changes for J1IEX /MIGO 20.06.2007
    12. 0.250 XX-CSC-IN-MM 1033731 Budget 2007-08 changes for Imports 13.03.2007
    13. 0.330 XX-CSC-IN-MM 1019973 RG23C serial number skips due to rounding-off error in J1IEX 20.02.2007
    14. 0.260 XX-CSC-IN 1005757 Batch split issue when capturing EI and GR done seperately 28.12.2006
    15. 0.250 XX-CSC-IN 838395 J1IEX does not fetch Invoice for part 2 Posting 19.04.2005
    16. 0.240 XX-CSC-IN-MM 584370 Corrections in the area of procurement for India 06.01.2003
    17. 0.250 XX-CSC-IN-MM 546749 Incorrect Excise Duty defaulted in J1IEX

  • Error 880b5f68 keeps appearing when trying to print on my photosmart 325 printer.

    Each time i try to print error 880b5f68 appears.  Product support says it will shutdown and reset, this is not the case, when it restarts the same happens again.  Anyone know how to get round this error so i can use my printer again?

    Hi sskcasto,
    Here are some solutions:
    http://fix-your-printer.blogspot.com/2011/01/solvi​ng-error-code-oxc19a0036-on-hp.html
    Good luck !

  • Color to FCP error

    I sent a sequence to Color from FCP as usual and when I was done I saved it and clicked Send to Final Cut Pro. The sequence came back to FCP as usual but when I opened the colored sequence - ie. 'Sequence' (from Color) - there was no sequence there. It was as if I had sent a blank sequence from Color.
    Does anyone know what is happening here? I've never had that happen before.
    Thanks!

    For anyone who is having this issue, definitely try the following steps in order. I used these steps to fix a General Error problem and it fixed the round-tripping error at the same time.
    Thanks to OmegaProductions for posting this solution...
    Check permissions on the render folder. The general error is usually a permissions issue.
    However it would be good for you to trash the prefs again also.
    Log in as the user where you are having issues.
    Trash all prefs not just .plist
    Heres what to trash;
    Location /Users/username/Libray/Preferences/
    com.apple.finalcutpro.plist
    Then trash;
    Location /Users/username/Libray/Preferences/Final Cut Pro User Data/
    Final Cut Pro 7.0 Prefs (or whichever version you are running)
    Final Cut Pro Obj Cache
    Final Cut Pro Prof Cache
    Then empty trash.
    I would then repair permissions on the machine (this usually helps from time to time.)
    Log in as your admin go to Disk Utility highlight the disk name and repair permissions.
    Restart and Give it a whirl.

  • Error code from Matlabscript

    Hi,
    I'm using Matlab script node to interpolate a 2D Surface. But sometimes it shows an error and close the program.
    The error message is not always there. It appeared when I gave it some specified "XLength" or "YLength".
    Here is the error message:
    Error 1050 occurred at LabVIEW:  Error occurred while executing script.
    Error message from server: ??? qhull precision error: initial facet 2 is coplanar with the interior point
    ERRONEOUS FACET:
    While executing:  | qhull d Qt Qbb Qc
    Options selected for Qhull 2003.1 2003/12/30:
      delaunay  Qtriangulate  Qbbound-last  Qcoplanar-keep  _pre-merge
      _zero-centrum  Pgood  Qinterior-keep  _max-width 1e+003
      Error-roundoff 1.4e-012  _one-merge 9.7e-012  Visible-distance 2.8e-012
      U-coplanar-distance 2.8e-012  Width-outside 5.5e-012  _wide-facet 1.7e-011
    The input to qhull appears to be less than 3 dimensional, or a
    computation has overflowed.
    Qhull could not construct a clearly convex simplex from points:
    The center point is coplanar with a facet, or a vertex is coplanar
    with a neighboring facet.  The maximum round off error for
    computing distances is 1.4e-012.  The center point, facets and distances
    to the center point are as follows:
    facet
     p4
     p20
     p0
     distance= -1.1e-013
    facet
     p24
     p20
     p0
     distance=    0
    facet
     p24
     p4
     p0
     distance=    0
    facet
     p24
     p4
     p20
     distance=    0
    I hope, I can get some advises here. Thanks in advance!
    Attachments:
    Snap.jpg ‏23 KB

    Hi,
    I think you are using LabVIEW 8.5. There are some bugs in LabVIEW 8.5 which cause the 'linear' and 'cubic' options of griddata to return incorrect result. Fortunately, we have already found these bugs and fixed them. If you got a chance to try the LabVIEW 8.6 Platform Beta, you could verify the fix. Here, I attach some snapshots of the result for the 'cubic' option of griddata with the fix. I specify the XLength and YLength to 1000. Are these the results you want?
    As to the crash problem, I am unable to reproduce it on my machine. I follow the instruction to set XLength to 1000 and YLength to 880. All combination of method and option of griddata work well. Therefore, I do not have any idea about it. Maybe, you can try to reinstall the LabVIEW software.
    I do not have access to MATLAB software. Hence, I am unable to run your code with MATLAB Script Node.
    Many thanks!!!
    帖子被ttrr在03-18-2008 08:39 PM时编辑过了
    Attachments:
    spline.PNG ‏28 KB
    nearest.PNG ‏28 KB
    linear.PNG ‏26 KB

Maybe you are looking for

  • ITunes not opening.  NO ERROR MESSAGE

    I cannot get iTunes to open. When I double click on it, the "hour glass" shows up, and I give it a minute or more, but the program does not open? I have the updated verision, but cannot get it to open. No error message when I try to open it...no prog

  • Windows XP can't connect to the SMB service of the OS X 10.5.6

    Hello, I can't connect a XP to the SMB server OS X. The XP could see the other pc's in the network and when I share a folder I could access it from the mac enviroment. The 2 vista machines could access also without any problem. Only the XP is a probl

  • Bridge can't find Startup Scripts on OSX (CS5, CS5.5, CS6)

    I just spent a few hours trying to figure out why Bridge could not be launched from Photoshop, and also why the Stratup Script panel in Bridge Preferences was empty. On the chance someone else has this issue, I have found one cause for the problem on

  • BAM Error after deployment

    HI All, Getting below error after updating BAM activity using BAM.exe command  Please help me...  Warning: Execute batch error.  Exception information:  TDDS failed to batch execution of streams.  SQLServer: hswsxxxxxxx, Database: BAMPrimaryImport.Pa

  • NPE when running ADF

    Hi All, I have deployed a ADF application on 10.1.2.0.2 oracle as and I get the following error: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:758) at java.util.regex.Matcher.matches(Matcher.java:388) at oracle.