Acrobat Pro 6 Average Daily Production and Math.round problem

Acrobat Pro 6 Average Daily Production and Math.round problem
(Production.0) (154) (whole units) . (Production.1) (90) (fractional) / (divided by) 31 (days) results in (Average.0) (4)(whole units) . (Average.1) (10) (fractional) using :Math.round.� Noticed that 154 (whole units) . 85 through 99 (fractional) also show 4.10. (without Math.round : 5.00)
Method:
�Production.0� (whole units) . �Production .1� (fractional) / Days = (Average Daily Production) (�Average.0� (whole units) . (Average.1) (fractional)
� Production.0 (value not calculated)�, � Production 1 (calculated) (event.value = util.printx("0099", (event.value)).substr(-2,2); � �Average.0 (value not calculate)�, and �Average.1 has following calculation:
var punits = this.getField("Production.0");
var pfrac = this.getField("Production.1");
var average = 0.0;
average = (punits.value + pfrac.value / 100) / this.getField("Days").value;
this.getField("Average.0").value = average - average % 1;
this.getField("Average.1").value = util.printx("0099", Math.round((average % 1 * 100))).substr(-2,2);
�Math.round� appears to be a problem. Also, could you explain the purpose of �0099� . Anyway, why would 154.85 through 154.90 divided by 31 give 4,10. Also, their must be a better way, to find the average daily production. All you have to do is divided the production (whole. fractional) by the days, and display the average daily production as (whole. fractional). Any suggestions??

There are a many loose ends in your question.
First, I have never seen before a variable type called 'var'. Is it a java primitive or a class?
Next, I cannot seem to find any class that has the printx method.
When it comes to substr(-2,2), I get confused. First, I thought that it was a method of the String class, but I only got as far as substring(beginIndex, endIndex).
If you really must break the production and average into pieces, try this:
float average = (punits + pfrac/100) / days;
int avg_units = (int)average;
int avg_frac = (int)( (average - avg_units) * 100 );My guess is that util.printx("0099", x) formats x having two optional digits and two mandatory digits, showing 0-99 as 00-99, but allows to show numbers with three and four digits.
154.85/31 = 4,9951612903225806451612903225806
154.99/31= 4,9996774193548387096774193548387
If you round the fraction of theese numbers multiplied by 100 ( = 99.51.. and 99.968...) you get 100, and this will be the output of printx. My guess for "4.10" is that substr(-2,2) returns the two first characters of the string, because the start index should not be zero. (According to java docs, substring throws an exception on a negative index, so what kind of class are you really using ??????)

Similar Messages

  • Printing pdf documents too large acrobat pro 10.1.12 and OS 10.9.5

    Using my Acrobat pro 10.1.12 and IMac OS 10.9.5, all my pdf documents print about 10 - 15% too large and run off page even though they are standard size documents and print fine using my Mac Air OS 10.8 and Acrobat Pro 10.1.1.  The "shrink" and "Fit" settings are ineffective and I don't think they should be necessary anyway since these are standard size documents. Please help!!!  THANK YOU

    Correctn. My problem came from firefox. Once I changed page setup under the file heading, it worked fine. Seems the new install of adobe somehow changed the setting in firefox to 150%.

  • I installed acrobat pro on my computer, and now I am unable to download items because I get a message that I need to open acrobat for the user agreement. opening acrobat pro does not help.

    I installed acrobat pro on my computer, and now I am unable to download items because I get a message that I need to open acrobat for the user agreement. opening acrobat pro does not help. What do i do?

    I have not contacted Adobe. I am using acrobat pro CC, and haven't noticed any problem with the software itself. The only problem I have had so far is when I try to download.

  • My mac book pro runs so slow and little round rainbow keep popping up

    My mac book pro runs very slow and little round rainbow keeps popping up

    First, back up all data immediately, as your boot drive might be failing.
    Step 1
    This diagnostic procedure will query the system log for messages that may indicate a hardware fault. It changes nothing, and therefore will not, in itself, solve your problem.
    If you have more than one user account, these instructions must be carried out as an administrator. I've tested them only with the Safari web browser. If you use another browser, they may not work as described.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'Channel t|GPU D|I/O|nspace-h|n Cause: -' | tail | open -ef
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Normally the command will produce no output, and the window will be empty. If the TextEdit window (not the Terminal window) has anything in it, stop here and post it — the text, please, not a screenshot. The title of the TextEdit window doesn't matter, and you don't need to post that.
    Step 2
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have a portable computer, check the cycle count of the battery. It may be due for replacement.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane. See whether there's any change.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    If you have a MacBook Pro with dual graphics, disable automatic graphics switching in the Energy Saverpreference pane for better performance at the cost of shorter battery life.
    Step 3
    When you notice the problem, launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 4
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • How do I preserve the embedded hyperlinks when printing to .pdf?   I am using Acrobat Pro XI for Mac, and when I export to .pdf the existing hyperlinks lose functionality.   I assume it's just the flick of the right button – I just need help finding that

    How do I preserve the embedded hyperlinks when printing to .pdf? 
    I am using Acrobat Pro XI for Mac, and when I export to .pdf the existing hyperlinks lose functionality.   I assume it’s just the flick of the right button – I just need help finding that button. 
    Can you help?  Thanks!

    How:  MS Word to .pdf by Command P, hitting the PDF button, and then the button for "save as Adobe pdf"
    I didn't have this problem at all on prior versions of Adobe on my PC.   This isn't a Mac attack, is it?

  • When i want to open acrobat pro it unexpectedly quits and the application manager opens, but when i click "agree" nothing happens

    I installed yosemite several days ago. Now i want to instal Acrobat Pro from the cloud but i have some problems.
    1) I have to try the installation severaltimes before it succeeds.
    2) when it finally succeeds and I open Acrobat pro, it quits unexpectatly and I receive a screen from the application manager to "agree". Thant screen is empty and when I click on the button "agree" nothing happens.
    Please help....

    Hello M159,
    Please follow the steps given in below article:
    Blank EULA screen appears on Acrobat XI launch
    Regards,
    Anoop

  • I have Acrobat Pro 10.0.1 and I can no longer create a new document

    I just got a new laptop in May and installed Acrobat Pro 10.0.1 via my IT department. This may be the first time I have tried to create a new document since my last computer but I run into the problem of not being able to create a new file. Furthermore, I can't even convert a document. I get an error saying my PDFMaker files are missing and it asks if I would like to run the repair. After running the repair the problem still exists. I have been unable to find an update or patch for this problem.
    Can anyone help?

    The URL below is to Adobe's Acrobat update page.
    There you'll find each of the incremental updates to Acrobat 10.
    They must be installed one at a time in sequence. 
      http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    Now, if after attempted updates fail then you'll need to speak with your IT Department.
    You need your install of Acrobat 10 updated to dot version 10.1.7.
    Be well...
    Message was edited by: CtDave

  • Where do I obtain my serial number for Adobe Acrobat Pro XI purchased online and downloaded?

    Where do I obtain my serial number for Adobe Acrobat Pro XI purchased and downloaded online?

    Did you buy a subscription?
    If you purchased the permanent product, where did you buy it?

  • I have Creative Suite 6 Design & Web Premium installed on my HP Windows 7 laptop. All of a sudden Acrobat Pro will not open and I cannot reinstall. Get errors 2203, & Error-Install MSI payload failed with error 1603. Help.

    I have not been able to reinstall Acrobat Pro on my laptop. I have Suite 6 Design & Web Premium on my HP laptop. I have Windows 7 operating system. All of a sudden Acrobat Pro will not open so I uninstalled and tried to reinstall the program.
    The error messages I get are:
    ERROR: Error 2203.Database: C:\Windows\Installer\12102c.ipi. Cannot open database file. System error -2147287035.
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Error 2203.atabase: C:\Windows\Installer\12102c.ipi. Cannot open database file. System error - 2147287035.
    ERROR: Third party payload installer AcroPro.msi failed with exit code: 1603
    Help PLEASE!

    Hi Patricia ,
    For error 2203 ,please refer to the following link.
    https://helpx.adobe.com/creative-suite/kb/error-2203-install-creative-suite.html
    For error 1603 ,refer to this link.
    https://helpx.adobe.com/creative-suite/kb/error-1603-install-cs3-cs4.html
    Let us know if this solves the issue .If required ,we"ll surely assist you further.
    Regards
    Sukrit Dhingra

  • Acrobat Pro 8.1.12 and Acrobat Reader 9.0 crashing when trying to print

    The subject line says it all, but I upgraded my MacBook Pro to Leopard 10.5.5 and now when I select File | Print I get the spinning beach ball than Acrobat crashes. Now oddly, if I use Acrobat Reader 7.0.9, it prints perfectly. But have Acrobat Pro 8.1.12 crash every time the File | Print is selected is a major problem. And no, not even the dialog box comes up first, Acrobat just goes down.
    Has anyone else seen this? I saw in the forum others were have problems creating PDF's, something I haven't done yet.

    Try the following: (I have no idea if it will help but might be worth a shot.
    Its possible That you need to update the driver shown in Printer Utility.
    Locate Adobe PDF 8.0 (what evr the latest version is.
    Now delete from Printer Utilities List, and quit Printer Utility.
    Now open Acrobat 8.1.2 and go to help menu.
    Now choose reapir or Replace.
    uncheck PDFViewer and check Adobe PDF
    Now click okay to repair.
    If you have acrobat 9. all previous acrobat versions will work with the Adobe PDF 9.0 Driver just fine. It just will not try to use new features added since 9.0.
    Also, It possible that your Print Driver for your printer has been updated with the new Sysytem Upgrade.
    If so remove the printer listed from the Printer Utility List.
    the click on add printer. look for the driver for your printer listed choose make default then quit.
    Try Acrobat 8 again and then go to set up menu see if you can find your printer listed. is so choose and save as default.

  • I purchased CS6 and had problems with the Adobe Acrobat Pro so i uninstalled and now need to reinstall but serial number wont work. How can i reinstall ONLY Adobe Acrobat Pro since its included in CS6?

    I purchased Design Standard CS6 the entire package. I downloaded and installed but I was continually having problems with Adobe Acrobat Pro. I tried updating to the newest version but it only made the problems worse (acrobat was super slow and constantly not responding). So i decided to try to uninstall and then reinstall the program. Well I uninstalled, and then attempted to reinstall ONLY the adobe acrobat pro but it says my serial number (which is for design standard) will not work. Since Acrobat Pro is included in the suite, i thought this wouldnt be a problem. Is there anyway to get around this without uninstalling the entire design standard and reinstalling everything? I only need to reinstall acrobat pro.

    You need to reinstall Acrobat the the Creative Suite, you cannot download it is a separate application and install it that way because it will be looking for a serial number relative to being a singly purchased application.

  • Created an image using Apple 10.6.5 with Acrobat Pro 9.4.1 and CS 5

    Greetings All.  Have a Happy, Healty New Year.
    As I open Acrobat Pro I am instructed to open Photoshop (or other App) first, which I did.
    Again I opened Acrobat Pro and rec'v message stating Acrobat Pro was installed as part of a suite and in order to enable Acrobat Pro
    I must open another CS 5 app. After closing the message Acrobat closes.
    Acrobat Pro was set up earlier with the CS 4 suite and upgraded as we go.
    Our CS 5 purchase did not include Acrobat Pro.
    Is there a workaround for this or do I need to uninstall 9 and install 10.
    Would prefer keeping 9.4.1 for now.
    Thanx
    ...mhu

    So Adobe-ites,
    here is the answer - when Acrobat 9.4 was installed it was installed with CS4. When readying to install CS5, 4 was uninstalled completely.
    I had to re-install any CS4 app., 9.4 recognizes it and problem was solved. 9.4.1 works just fine.
    thanx
    ...mhu

  • Acrobat Pro 9 e-sign and SharePoint 2010 integration

    Hello,
    I cannot get an Acrobat Pro 9 created document with electronic signature fields to open in SharePoint 2010 so it can be checked out, signed, saved and checked back in. I have seen discussions on this subject from 2011, but have not come across any solutions. Has there been a fix to this yet?

    There are several different scenarios that happen. I am testing the document before I send it out the links again to have users esign. Not every user has Pro 9. Some only have Reader 8. I am uploading the unsigned document created in Pro 9 to a SharePoint 2010 site. There are 10 different signature fields – none of them are locked. When I go to the document to sign under the “edit” function in SharePoint I get an error that says object label badly formatted when trying to save, or I am able to sign once and save, and when I got to test signature number 2 it cannot open the document. Every time I upload it to SharePoint I have to enable Reader 8 usage rights. Sometime it lets me do it, and sometimes it says “this document could not be reader enabled.” It does not seem to be stable. Sometimes it works and then just a few minutes later it has problems. Please advise. Thanks.

  • Acrobat Pro 9.3 freezes and locks up computer

    Something has gone VERY wrong with Acrobat 9.3 - every time I try to save or print anything, it not only locks up and stops responding but also causes Windows 7 to come to a screeching halt. Sometimes I can recover the Windows 7 crash without rebooting while at other times, I cannot. Right now, I NEED to find out what is causing Acrobat Pro 9.3 to crash. I've tried running all of the updates and nothing seems to work. Any ideas? Help!

    When I open Distiller, I go to file>open and then change the file type to "all" - as the file I'm trying to open is a .pdf (which doesn't show up under file name in Distiller). When I try to open the .pdf, it crashes.
    Acrobat crashes when I try to save or print a .pdf. It also acts up (sometimes) when I try to change/edit the .pdf. Regardless, if I can't save or print .pdfs, Acrobat is now useless. By "freezing" I mean that Acrobat completely locks up - the title bar (at the top) will often state that it is "not responding" and the window becomes "grayed out." Even worse, is that Windows 7 also comes to a screeching halt - if the computer doesn't completely lock up (meaning that NOTHING WORKS and I have to do a hard reboot by turning off the power), everything becomes VERY slow - it's becomes impossible to change windows and, even if the task manager is already open, I often can't shut down Acrobat 9. In the event that I'm finally able to do that (which is not always possible), then most of the other programs seem to work again.
    Another problem that appears to be related is when I try to open up a .pdf in Outlook - that also seems to cause Acrobat to crash/lock up.
    Hope this helps as I've done everything I can think of.

  • Upgraded to Adobe Acrobat Pro 10.1.1 and prior versions still present cause confusion.

    After buying Adobe Acrobat X Pro, installing it, I see Adobe Acrobat 8 Provessional and Adobe Acrobat Pro still are listed as "applications".  Should these be removed?  If so, does using the Acrobat Uninstaller.app allow me to specifically delete each without destroying my Adobe Acrobat X Pro version? I use Mac OS X Version 10.6.8.  I would like to avoid reinstalling Acrobat X Pro, but for no particular reason except that things are working so well at the moment. This is what is listed on my computer now.

    Hi,
    Before removing Acrobat 8 please check the version of AdobePDFViewer plug-in.
    Go to (Drive where OS is installed)\Library\Internet Plug-Ins\ and click on AdobePDFViewer.plugin to check its version. Now follow the instructions below
    a) If the version of plugin starts with 10 then
         - Launch Acrobat 8 Professional
         - Go to Help-> Activation->Deactivae
         - Then quit Acrobat 8
          - Trash the "Adobe Acrobat 8 Professional" folder     
    b) If the version of plugin starts with 8 then
          - Go to Acrobat 8 Professional folder
          - Launch the Acrobat Uninstaller app
          - in the browse dialog for uninstall select Adobe Acrobat Professional present in "Adobe Acrobat 8 Professional" folder
          - Reinstall Acrobat X Pro
    regards,
    hit.anand

Maybe you are looking for

  • Memory upgrade for Satellite A10-S811 PSA10E

    I want to upgrade the memory on my old laptop i've found the manual and read a bit in it. Apparently it uses PC2100 DDR (266 Mhz) has two memory slots and only allows up to 512 mb modules. Is it at all possible to use larger and/or faster modules. I'

  • How to get the UIDRef of Text frame associated with hyperlink?

    Hi, I have a document which contains Text hyperlinks . I am able to get the number of hyperlinks present in document using "IHyperlinkTable" and text range to which hyperlink is associated using interface "IHyperlink". InterfacePtr<IHyperlink> hyperl

  • [SOLVED] Somme strange LXDE problems after update

    Hi i had no problems at all white 3.10.3: the arch linux kernel of death but i have some now. Its not a big problem butte LXDE is refusing to load my background image and it has switch t my keyboard layout to from Swedish to English after the last up

  • Download Lightroom 4

    I have bought a Canon 6D recently. The camera comes with a voucher and a registration code for Lightroom 4. The URL for the download is http://adobe.com/downloads. There is only the download for Lghtroom 5. This version can not be activated with the

  • Classpath for a simple class

    I'm in directory A, which contains resources I need for imports, compiling a/b/rpt.java I do javac b/rpt.java How do I execute it? cd b java rpt gives a NoClassDefFoundException Doing javac -d . b/*.java java rpt gives the same exception The class ha