Result of the calculation were separated to the whole and decimal, number not rounding correctly
I have 2 fields as a result of sharing: the whole and decimal number (1 decimal place). I Math.floor the result to get the whole number and everything is fine until I hit a case where the result is 92,97.
This should give "93" in the whole of the field and '0' in the decimal field, instead it gives me '92' and '10' (even though I'm only hosting 1 character in the field).
How can I get the '93' and '0' in the following code?
fieldLVEDV = this.getField("LVEDV").value;
fieldBSA = this.getField("BSA").value;
If (fieldLVEDV! = "" & & fieldBSA! = "") {}
totalLVEDV = this.getField("LVEDV").value + ((this.getField("LVEDVDec").value)/10);
calculation = (totalLVEDV / fieldBSA);
calculationDecimal = calculation;
partWhole = Math.floor (calculation);
if(partWhole <0) {partWhole =' ' ;}}
this.getField("Index").value = partWhole;
this.getField("IndexDecimal").value = Math.round (10 *(calculationDecimal-partWhole));
{If (this.getField("IndexDecimal").value = '10')
{
this.getField("Index").value = partWhole + 1;
this.getField("IndexDecimal").value = "0".
}}
} else {}
this.getField("Index").value = "";
this.getField("IndexDecimal").value = "";
}
I thought I'd add the blue part would do the job, but obviously it did not work.
Ah, your problem is that you do not use the correct comparison operator. To check if two values are equal, the operator is "==" not not "=". Using "=", you assign the value 10 to the field which you then pass in 0 a few lines down. Use 'is' and things should work correctly.
Tags: Acrobat
Similar Questions
-
Overview of the Mac and TeXShop print not PDF correctly on Laserjet 600 M601
Hi all
New here and of course with an insoluble problem.
Since the upgrade to: (10.8.3), one Mountain Lion iMac and new HP printer, I cannot preview either no Mac or TeXShop to PDF print correctly on my printer HP Laserjet 600 M601 (this by the way is a "new" printer so I can't compare with how it was before the Mountain Lion or the iMac). I have the following software to print:
Overview of the Mac
Abobe Reader 9.5.5
Adobe Acrobat Pro 9.5.5
Adobe Acrobat X Pro 10.1.7
TeXshop 3.18
and I can print for
HP Laserjet 600 M601
Laserprinter LBP5300 color Cannon
Are the combinations that will never give a correct output (bad fonts, spacing of mathematical fonts bad garbage)
Overview of the CMA on HP printer
TeXshop on HP printer
Other combinations work OK. PDF created in TeXShop will also print correctly if printed through Adobe or on the barrel.
Any help much appreciated.
Cheers, Bob.
I would recommend that you download the driver through Apple Software Update and try to install it this way on computers running OS X 10.8. -
I have firefox installed on both computers. The office displays not the split screen, but the laptop don't. I checked the posts and I have not the separator module of fox but still get the split screen when I click on a second site.
Firefox has no built-in opportunity to split the screen. There are several add-ons that can split the screen to solve this to know what originally, using the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
Another possibility is that you have a few set bookmarks to open in the sidebar. If this only happens for a few bookmarks, right-click on the bookmark, and then select Properties. Make sure that the "Load this bookmark in the sidebar" option is not selected.
-
Payment plan 'picture '.
Money was withdrawn from the account, but creative cloud changes were products on the site and also does not appear on the site as my payment was perfect (but money was withdrawn)
Sorry for my English.
Hi Vladislav % 20parfyonov,
I saw the Adobe ID (email address) you used to post here and can see that you have a plan of creative photography of cloud are recorded.
Please make sure you use the same Adobe ID (email address) that you used to purchase the subscription to connect to the Web site.
Adobe trial and purchased applications are the same, you can download the application once installed, creative cloud it invites you to connect, use the following link: Download Adobe Creative Cloud apps | Adobe Creative Cloud free trial
Once logged in go to APP and tab install CC 2015 Photoshop and Lightroom CC 2015 from there.
* NOTE: Please make sure that your firewall of your computer or security software firewall does not block Adobe, if you are not sure of it then just turn off the firewall for awhile disconnect you and you connect on the creative application of cloud and check.
Let us know if that helps.
-
The course does not send the results of the tests and reports system (Saba) after trial. The course remained "incomplete". What can you recommend?
Ok. So you're screenshot compared to SCORM clouds now shows you're scoring 100% in the quiz, but your state of completion will still come out incomplete. Then of course, your quiz notification settings not award success based on passing the test.
Try to set your quiz the way I show this screenshot using SCORM 1.2 instead of 2004.
-
Faulty installation of update as a computer several times to send the following message: "changes in the restoration. Updates are not configured correctly "." What should I do?
Hi NickGodin,
You can try these steps and see if it helps.
Step 1:
If you are unable to boot into normal mode, you can read the following article and try the steps to run the system restore.
Step 2: When you are in normal view, you can see the history of update to discover the update has failed as a result of the article:
See the Windows updates are installed
Step 3:
You can also try to download and install the stand-alone package with updates from the Microsoft Download Center.
a. to download updates from the Microsoft Download Center
b. Enter the item number in the field search and download the same.
c. double-click on the downloaded file.
d. click on run and follow the wizard to install it.
Hope this information is useful.
-
I bought the iTouch two at a time, one for my wife and one for me. In the application 'Notes' my wife shows the symbol "+" to the formatting and mine does not work. Any suggestion.
Could you please include screenshots of the so-called issue?
-
Someone ask to send the password and it did not
Hi all
Someone ask to send the password and it does not email
Added to the email account has changed secret question what to do
Go to https://getsupport.apple.com . Click on "see all of the products and services ', then 'More', then 'Apple ID', then 'other Apple ID subjects' then 'security issues forgotten Apple ID". If you have problems with this test of this form: https://www.apple.com/emea/support/itunes/contact.html
-
My Thunderbird page is screwed - there is no address book that appears in the toolbar, and I do not see a tab 'write' - just 'message' how can I restore back to normal?
Would so much appreciate help... frustrating.
This is the Contact Sidebar in the entry window. Press F9 when in the write window to enable or disable.
Or you can also access it from the view menu in the window of writing.
Sidebar view-presentation-ContactAnother clue. If something is missing in any look of window on the View Menu. This is how you configure the view you want.
-
At the opening of the library of photos, each photo turn the black thumbnail and so that to open it. Preview also does not have photos properly. I tried to repair the library and this did not help. Could this be a problem with the RAM? Help, please!
Check, if pictures can access the original files of your pictures, or if the originals are missing.
You can test to try to edit a photo or trying to export it with "file > export > export original file..."
Photos can be edited or exported?
Shooting Raw or JPEG? Where your photo library is stored? On an external disk or in your pictures folder?
-
The date and time does not work.
I have an iphone 5 c.
The date and time does not work. This is the second time. The first time was about 3 to 4 months again and now again after upgrade to iOs9.3.1.
Even after trying to change it manually, time slows down or stops.
Everyone has problems with their date and time?
- Try a forced reboot: hold down the House and on the buttons until the unit turns off. Ignore the cursor off if it appears. Once completed, if it does not start on it own, turn off power with the key On. In some cases, it also contributes to double click the Home button and close all applications before restarting.
- Restore factory settings (no backup)
- Make an appointment at your local Apple store to have it checked.
-
Since the upgrade to ios 9.3 on my iphone 6, links in the email and SMS are not working and freeze the apps. If anyone has had this problem and if yes, how do solve you this problem?
There has been a number of similar reports. See also http://osxdaily.com/2016/03/25/troubleshooting-ios-9-3-update-problems/
-
What happened to the button on the left end of the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? You can look at the drop down window of pages and just choose whatever you want. I use it all the time and it is not on FF4. I want to go back to the old FF.
If you right click on your back button, or click and hold down the mouse button, it will display the list. (I prefer a click-right, because sometimes my fingers slide when I try to click and hold)
-
My keyboard has changed a few months ago. The @ moved to the "key and I did not book sterling key.» How can I repair my keyboard. I'm on windows 10. Thank you.
Hello
Looks like you have poorly defined the keyboard layout.
If you have more than one keyboard layout in Windows 10, you can switch between them by keeping the CTRL key and pressing the SHIFT key
You can also change the layout for your keyboard as shown in the link below.
Change of keyboard - Windows 8 & 10
Kind regards
DP - K
-
Cocomputer cannot find the printer and I do not have a disk for it
Original title: printer SUPPORT
my computer cannot find the printer and I do not have a disk for it
Then, download and install the appropriate drivers on the printer manufacturer's support web site.
Maybe you are looking for
-
HP Pavilion 8260 Office to wide band?
Can I do a HP 8260 able to use a wireless broadband network?
-
Someone at - he tried to play GTA 5 on lenovo? I want to buy this game, I want so just know how he behaves on 750M and she supported SLI?
-
HP Color LaserJet 3800 Laser printer
Cannot print multiple copies of a file of any software
-
Problems with Server 2008 R2 Kerberos with Mac and CentOS machines? Need to re - join domain
We are having a problem with our Mac and Linux / CentOS machines constantly having to be re-attached to our AD domain.We are able to join machines to the domain successfully, but after a few weeks or if authentication is broken and we again join them
-
V3 - 471G battery Acer aspire not fresh avaialable
I would like to ask how to solve the battery plug when the battery does not charge. Please help me solve this problem.