Problem with mathematical expression!

I have three text fields ('AnzalungProzent', 'Anzahlung' and 'Kaufpreis'). I want the 'Anzahlung' text field to show me the equalization of the expression shown below.
And this is the Error I am getting.
Can somebody please help me. Im probably just an idiot.
Thanks alot!

You can't do math on a string. This is a typed language. You need to convert the strings to numbers, do the math, convert the result to a string, then assign that to the 3rd text field.
If the strings are integers then try:
int val1 = [Kaufpreis.text intValue];
int val2 = [AnzahlungProzent.text intValue];
int res = val1 * 100 / val2;
Anzahlung.text = [[NSNumber numberWithInt:res] stringValue];
If they are floating point values then replace all of the 'int' with 'float'.

Similar Messages

  • Probleme with PCI Express Root Complex

    I bought an hp 15t - j100 with Windows 8.1 but on windows 8.1 but i needed change to windows 8 and now i have a problem with PCI Express Root Complex code 28. The drives i have donwload for hp site http://h10025.www1.hp.com/ewfrf/wc/softwareCategor​y?os=4158&lc=en&cc=us&dlc=en&sw_lang=&product=6521​...
    I need help to solve that problem
    thanks
    and i waiting for help
    This question was solved.
    View Solution.

    Hi:
    You need this driver...
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=ob-124661-1&cc=us&dlc=en&lc=en​...

  • Problem with Regular Expression

    Hi There!!
    I have a problem with regular expression. I want to validate that one word and second word are same. For that I have written a regex
    Pattern p=Pattern.compile("([a-z][a-zA-Z]*)\\s\1");
    Matcher m=p.matcher("nikhil nikhil");
    boolean t=m.matches();
    if (t)
              System.out.println("There is a match");
         else
              System.out.println("There is no match");
    The result I am getting is always "There is no match
    Your timely help will be much appreciated.
    Regards

    Ram wrote:
    ErasP wrote:
    You are missing a backward slash in the regex
    Pattern p = Pattern.compile("([a-z][a-zA-Z]*)\\s\\1");
    But this will fail in this case.
    Matcher m = p.matcher("Nikhil Nikhil");It is the reason for that *[a-z]*.The OP had [a-z][a-zA-Z]* in his code, so presumably he know what that means and wants that String not to match.

  • Problem with Airport express N (2nd gen)

    Problem with Airport express N (2nd gen)
    Firmware 7.6.4
    ISP - 20 Mbps ethernet cable
    I have MacBook Air 13 mid 2013 os x 10.9.5, ipad 4 ios 8.0.2, ipad4 ios 7.1.2 , iphone 5 ios 7.1.1
    When i try to use speedtest.net from my Macbook i got good results of download speed and incredible upload http://www.speedtest.net/my-result/3801286946 (connection 300 Mbps) , both ipads got terrible speedtest download result and incredible uploadhttp://www.speedtest.net/my-result/i/981631804 (connection 150 Mbps), iphone 5 got bad download and great uploadhttp://www.speedtest.net/my-result/i/981695357.
    All these tests were done near airport express with really good signal and 5ghz. I tried to choose different channels, 802.11 mode, guest ssid, 5ghz ssid ...
    I think that something is wrong with my new airport express. Can anyone help me to solve this problem?
    ps sorry for my bad english

    As a last resort, try a factory default reset on the AirPort Express as follows:
    Power off the AirPort Express
    Wait a minute
    Hold in the reset button first, and keep holding it in for another 8-10 seconds while you simultaneously plug the Express back in to power
    Release the reset button after the hold period and allow a full minute for the Express to restart to a slow, blinking amber light status
    On an iPhone or iPad home screen....
    Tap Settings
    Tap WiFi
    Look for a heading of Setup a New AirPort Base Station. If it appears.....
    Tap on AirPort Express just below the heading to start the configuration process on the Express again
    If you try several factory default resets, and the AirPort Express does not appear under the heading of Setup a New AirPort Base Station, the Express most likely is defective and will need to be replaced.

  • Problem with Application Express

    Good Morning,
    I installed Oracle Application Express, but I have a problem with the first login and the creation of my workspace.
    During login using the username 'admin' and pwd as the sys's user because until now the only pwd I configure when I installed Oracle Express 10g and Oracle Application Express.
    When I go to login, the page seems not to take any command.
    I look a your help. Thanks

    Check out the {forum:id=137} forum you'll probably get better help there.
    By the way, welcome to the forum! :)

  • Notation Problems with Logic Express 8

    Hello there,
    I´m a new member here and have a question about a notation problem with Express 8.
    When I´m trying to double measure bars (is this correct? In german we call them "Doppelstriche". They are to divide one part from another... hope anyone understands this), they disappear. I don´t know why, but it happens after about a minute after writing them into the Complete Set... it never happened in Logic 7, it´s a new problem for me...
    I thought that perhaps I pushed a wrong button by accident, but even when I did it correctly, securing everything, locking screensets, it disappeared...
    hope anybody does know anything about this,
    Alex

    We just call them 'double lines' although a double 'bar' line is the thick/thin pair that ends a piece.
    I did a simple test myself, just ran some notes in the Piano roll and got some 'score' to edit and dragged and dropped the double lines in place, no problems. I closed, opened, resaved, and played the 'piece' for a few minutes on loop, nothing went wrong.
    Perhaps I am missing something but i don't seem to be able to see them dissappearing.

  • BIG5 Problem with WebLogic Express 6.1

              Hi,
              I found some problem with Chinese Big5 when using JSP. All big5 code convert in
              a wrong format and can't view by browser.
              My server setting is:
              OS: Solaris 8
              Weblogic: Express 6.1
              JDK 1.3.1
              Anyone know how to solve this problem?
              I have tried different way like creating a new string in different encoding type.
              Actually the BIG5 work fine with Solaris 8, JDK1.2.2_05a and Weblogic 5.1. However
              I WEblogic 6.1 only support JDK1.3 or above. Anyone can help me out. Thanks.
              Pls email me at [email protected]
              

    The download binary is the same for WL Full version and WL Express. It's the
    license that matters. Contact BEA to obtain / buy a WL Express license.
    Ben
    "Rajendra" <[email protected]> wrote in message
    news:[email protected]..
    We have WebLogic 6.1 licensed software. I need to work with WebLogic
    Express.
    I installed on win2K using the installer available with the CD. Now, what
    exactly do I need to do (restricting license..) to work with WebLogic
    Express?
    I need this info urgently. Any help in this regard is greatlyappreciated.
    >
    Thanks
    Rajendra.
    "Michael" <[email protected]> wrote in message
    news:[email protected]..
    Hi.
    WebLogic Express is WebLogic Server with a different license that limits
    some of
    the WebLogic Server features, such as EJB. Downloading WLS effectively
    downloads
    WebLogic Express.
    Regards,
    Michael
    raj wrote:
    Hi,
    does anyone know if it's possible to download weblogic express 6.1 ? icouldn't
    find any link on the bea website.
    thanks
    Raj

  • Problems with EL expressions

    Hi all,
    Actually i have a problem. I am working with Tomcat 5.0.XX and when i create a new web app inside webapp directory and define any jsp with EL expressions, these ones don�t evaluate to theirs values.
    For instance, this is the code of one.jsp:
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <body>
    <h1>DATAS</h1>
    <table border="5">
    <tr><td><b>NAME:</b></td><td><i><c  ut value="${param.name}"/></td></tr>
    </table>
      When i try
    http://localhost:8080/webDir/one.jsp?name=Charly
    the output is
    NAME: ${param.name}
    In my WEB-INF/lib dir i have placed jstl.jar and standard.jar
    Curiossly, when i put this jsp inside webapps/jsp-examples, all is ok
    Thanks in advance

    This is caused by your web.xml file.
    For backwards compatibility, if you specify web.xml as version 2.3, it disables EL evaluation.
    To fix, you need to update your web.xml with the servlet2.4 header.
    Look at the example one under ROOT to see the new syntax.
    Your web-app tag should look something like this:
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">Cheers,
    evnafets

  • WDK 8.1 update download issue and integration problem with VS Express 2013

    I have VS Express 2013 in my machine and want to download the WDK 8.1 Update. However, I am facing two issues:
    1. The download site says : "You have to register for downloading. Click on continue to register and download". On doing so it asks for what I want to download. Then it redirects to the page saying "Thank You for downloading". However,
    it has been more than 10 times since yesterday and yet no file has popped up for download. It is the same problem with other machines.
    2. On installing WDK 8.1 from softonic, it has created a separate folder and shows no way for its integration with VS express 2013. I do not get any "Windows driver functionalities" in VS Express 2013.
    Could somebody point me where I am wrong.
    Thank You in advance

    Hi codeahead,
    About this (1) issue, could you please tell me where you download the WDK 8.1 Update?
    Generally, I know that we can download the WDK 8.1 Update from the following Microsoft Official site.
    http://www.microsoft.com/en-us/download/details.aspx?id=42273
    So please you check if you download the WDK 8.1 Update from the above link.
    (1) If no, please try to download this WDK 8.1 Update from the above link check this issue.
    (2) If yes, could you please tell me if you register a life user account from this Microsoft?
    Generally, I know that when we download some software from this Microsoft site, we will need to register a life user account.
    So please check if you have a life user account from this Microsoft site.
    However, as you said about the (2) issue. Since it is related to install the WDK 8.1 with VS2013 Express. Since I am not the VS Install experts, so I suggest you can post this issue directly to this VS Install forum:https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vssetup
    , you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Itunes 7.7 - problem with airport express remote speakers

    I upgraded to 7.7 and when I try to connect to my remote speakers, itunes either does not play or the sound cuts in and out. Anyone have any suggestions?
    Duq

    Having the same problem have 2 Airport Expresses and have problems with one of them locking up and not appearing on itunes or in the airport utility anymore.
    Switching it to ethernet usage to see if that helps or will try factory reseting it next.
    Have already tried hard and soft resets.

  • Problem with airport express extending wifi from extreme

    My setup is an airport extreme wired to the internet with two iMacs connected by wire and an airport express to extend wifi from the extreme to the further parts of my house.  When originally installed about a year ago this arrangement worked perfectly, but I noticed a few weeks ago that neither my iphone, ipad, nor my MBP 13" is connecting to the aitport express anymore and the network extension is not working as intended.
    Last night I investigated the isue and found that the express is connected wirelessly to my extreme because when I wired my MBP to the express and turned off the wireless connection it could still reach the internet.  But, even with the express sitting plugged in next to my iPhone I could not get it to connect to the express - it always uses the extreme and while I'm in range there is no problem.  The problem is that my house is old and the wals tend to cause problems with reception and I can't get wifi in the garden and some parts of the house.
    I have the express and the extreme configured to allow access only by the client macs that I have provided and it looks like the two devices share this information when they are in extend mode (but not sure about that).  When I set up the system I added the aitports mac addresses to the approved list in the access control screen, which seemed to be necessary then though I removed them (the airport mac addresses) fromt he list last night to see what effect this had and biefly the airport did connect to my MBP.  But after returning it to its location where it usually is I have not been able to reconnect to it.
    In brief;  I have an airport express extending an airport extreme wifi, it used to work, but now all wifi clients will only connect to the master.  I have a suspicion that a recent airport update has caused this (both airports are up-to-date) but can't be sure.  I have the express correctly configured to extend the wifi of the extreme as it was originally working.
    One thing I have noticed - I had the express set to use a fixed IP by setting 'static' in the internet screen - this is not the current setting (it's reverted to DHCP) and I cannot force it to update to and remain set to static.
    Does anyone know how I can restore the correct functioning of the express as an extension of the wifi network?
    Thanks
    Damon

    Perform the Factory Default Reset one more time. Hold the reset button until the amber light has been blinking rapidly for 8-10 seconds before you release the reset button
    Run the setup wizard, and wait for screen similar to this to appear, then click on Other Options:
    Select the Add to an existing network option, then click Next and follow the prompts.
    If you are still having difficulty, try running the setup utility on an iPhone or iPad, since Yosemite has a number of bugs in the setup process.

  • Macbook has Problems with Airport Express newtork

    I am using an Airport Express at home. I have my 20" iMac (OS 10.4.11) connected to the network with no problems. When I try to access the network with my Macbook (OS 10.4.10) I have all kinds of problems: I often can not find the network, when I do get onto the I get really slow download speeds (~3 mins for a web page), after waking the Macbook from sleep it can not find the network unless I restart. I even have these problems when the Macbook is right next to the airport (< 1 m).
    I don't believe it is a problem with the Airport because my iMac connects perfectly from about 4 m away through the floor.
    I don't believe it is the Macbook per se because I can connect to any open network without problems.
    It seems to be the odd combination of the Macbook with the Airport.
    Does anyone have any suggestions for addressing this issue?
    Thanks in advance.

    Network
    Plug the AE next to the PLC and connect it to the Ethernet port of the PLC.  Configure the AE to operate in bridge mode.  If your PLC doesn't offer an Ethernet port, use one like the Netgear XAVN2001.  If it's already taken, you will need a 4 port switch.  You will also need a long 3.5mm audio cable if the amp is not in the proximity of the PLC, available from Amazon for under $5.  Finally, create a separate wireless network on the AE.
    Client
    Connect the client to the AE's wireless network, not your existing network.  The client in this case is an iPxd or other computer with iTunes or Airplay/similar PC.
    The above basic configuration works flawlessly in my experience.  If the Client is to distant from the AE's wireless, you can, as a second step, connect it to your existing network, but be forewarned that in this scenario dropouts abound and the AE frequently disappears from view.

  • Problems with VirusBarrier Express?

    I gotten this app and it has caused problems with Microsoft office saving and has made my MBP create and unexpected continuous high pitched noise. Has anyone else had anything?

    Almost all commercial anti-virus packages tend to create havoc on Macs. Remove it from your computer..
    If you absolutely feel you MUST have such protection (most Mac drivers don't use AV stuff), there are two freeware packages that do not adversely affect performance. Google "ClamXav" and "Sophos."

  • Multiple Speaker Problem with Airport Express

    I'm having an issue with my Airport Express in selecting Multiple Speakers. I have one Airport Express located in the Living Room, and have no problem playing music on that directly from iTunes. However I cannot play there and on the Mac at the same time. An error message comes up:
    An error occurred while connecting to the remote speaker "Living Room". An unknown error occurred (-15000).
    I can clear the error and then go back to listening either in the living room or on the computer, but not both.
    I have tried reinstalling everything...iTunes, Airport, Mac OSX, you name it.
    Any ideas anyone?

    I may have a solution for you Shannon. My solution, found after a lengthly Apple Support call, applies to Tiger 10.4.11 however it likely applies to Leopard as well. The problem is with your Firewall settings which may be blocking UDP access and or have it operating under a Stealth Mode. It must be set to allow UDP Traffic.
    In 10.4.11 under System preferences/Sharing/Firewall under the Advanced button there are three checkboxes "Block UDP Traffic" "Enable Firewall Logging" and "Enable Stealth Mode". Uncheck all three of these boxes and it should work.

  • Problems with Airport Express in Router mode

    Hi all!
    I have an Airport Express and a PC home network (WinXP, Win2k and one Powebook). I have Itunes turned off and updated the firmware to 6.3. My Test PC is updated with all the latest updates. All of the Computers have Wifi G cards and are switched to Windows XP zero config wireless.
    I tried to configure the AP express both with the config wizard and the manual Airport admin utility on several computers. I have it configured to 128bit WEP security.
    I have no proxies or anything of that kind. Also tried disabling all firewall software.
    I have a DSL connection with Aztec DSL600E Modem which was previously configured as a fixed line router (its not wireless).
    I spent days at it but could not get the AP to replace the modem as router. The modem is configured to use PPPOE/PPPOA (tried both).
    When I configure the modem to stop being a router (I think this is done by selecting its "Server and Relay Off"
    option (it has either Server on, Realy on, or the above) in the Modem's DHCP configuration screen.
    Well when I do this, and configure the AP to distribute IP addresses (share a single IP) and "connect using PPPOE" connection, its light goes green but none of the computers can browse the internet, it just goes to "page not found" after a while. The PC's also then report a conflict in IP address.
    On the other hand, if I restore the modem to act as router, configure the AP as a Wifi bridge-to use Ethernet and not to distribute IP's, internet does work but slower than normal. (Not bandwidth, its the DNS lookup that slows things down I think, whenever trying to go to a new web address it takes several seconds to look it up before it says "web page found" on the bottom of the IE browser). If I disconnect the Wifi and connect one of the clients directly to the DSL modem, the DNS lookup takes seconds.
    I tried clearing the Cache, resetting the AP, doing IPconfig /release and /flushdns etc.
    Internet speed tests like DSL Speed test report latencies of 800ms sometimes.
    So i'm thinking that there is some conflict in the DNS or DHCP between the modem/router and the AP.
    What is better? leave it as is or try to get the AP to act as router and the modem as only a modem?
    All of my clients are set up to have automatic TCPIP configuration with DHCP.
    Also I wanted to ask:
    1) What does "domain name" and "DHCP client id" in the AP Admin utility / internet tab?
    My modem config screen has a "Management IP" section with:
    IP Address: 10.0.0.138
    Netmask: 255.0.0.0
    Default Gateway:xxxx
    Hostname: xxxxx
    Domain Name: xxxx
    Are the last two the same as the AP refers to as domain name as DHCP client ID?
    and why do I need a domain for just a home network?
    and why are the last two fields full in the modem screen if I don't have a domain?
    2) From what I remember of routers, they should have some place of configuring the peer to peer network name (workgroup) is that what they mean by "hostname" or "domain name"?
    The problem is that this Aztec model has no online manual. And the other models Aztec manuals don't go to such advanced details. And my ISP doesn't give support for sharing with routers (it is allowed but not supported). They will just say buy our monthly plan with WIFI etc.
    I would like to share files as well as internet access.
    3) What does the "Enable default host" option mean in the AP config network tab?
    4) What does the "Relay on" field mean in the Modem/router DHCPConfig screen?
    5) How do I ensure there is no conflict between the AP and modem/router, and that they use the most efficient method for looking up DNS's?
    Attached are links to screenshots of my configurations.
    http://new.photos.yahoo.com/nebula3012/album/576460762403680970
    (double click the pics to open them).
    It seems so complicated, a few years ago I set a 3COM Wifi router in a PC environment (Cable Internet) and was working within hours.
    by the way in the AP config summary it all looks normal except the "LAN MAC Address" which is empty.
    Thank you for your help... ** really..

    nebula3012, Welcome to the discussion area!
    1) What does "domain name" and "DHCP client id" in the AP Admin utility / internet tab?
    If those items are needed, your ISP will provide them to you.
    2) From what I remember of routers, they should have some place of configuring the peer to peer network name (workgroup) is that what they mean by "hostname" or "domain name"?
    No
    3) What does the "Enable default host" option mean in the AP config network tab?
    It allows you to configure a device as a server. All of the ports of that device will be directly addressable from the internet.
    5) How do I ensure there is no conflict between the AP and modem/router, and that they use the most efficient method for looking up DNS's?
    You worry too much. There is nothing special to do.

Maybe you are looking for

  • I'm not able to access goolge docs with the blackberry browser (it worked fine till a few weeks ago)

    I'm not able to access google docs with the blackberry browser (it worked fine till a few weeks ago) seems that this issue happens to a lot of people is google going head to head with Blackberry ? or is this just a bug ?  Message Edited by avolcoff o

  • TEMPRO is not working for Vista Ultimate x64

    Hi I have a Qosmio F50-10K and I installed Vista ultimate x64 and the Tempro appliaction is not working. After I install it, I left the Start Tempro button checked and when I press finish it gives me this error: "internal error 2753 Toshiba.ui.contro

  • Configuration de la Time Capsule : comment libérer le disque de mon Mac?

    Bonjour, Ayant un Mac book de 2008 avec un disque full de photos et de musique, j'aurai voulu libérer de l'espace sur le mac en déplaçant mes bibliothèques sur une Time Capsule 2 To, et en accédant depuis mon Mac au contenu sauvegardé sur la TC. Mes

  • VRO files

    I have, on a DVD-r, the files from a Hitachi camcorder(not my camera)DVDRam. I have Ilife 06. The problem is with the VRO files. Imovie will not import them. Quicktime will not play them on my Mac but yet on my PC I can play the file(not the best qua

  • Book Re-Booting after visiting a Hyperlink in the book

    I am currently working on an iBook that has roughly 70 resources hyperlinked to a website. On that website people are supposed to download the PDF to their iPad. However, for some reason 7 of the hyperlinks (of 70) bring me to the link I wish to go t