Java.math.BigDecimal Problem!

Hi all,
I'm running a webdynpro application, inside it I'm executing a RFC that receives some parameters. Most of them are strings, but just one of them is BigDecimal type. When I run the app, I got the following error...
java.lang.NullPointerException
at java.math.BigDecimal.<init>(BigDecimal.java:181)
I appreciate any help you can give me.
Thanks in advance.
Jesus.

Hi Nibu,
Here you have the code that I'm using..
BigDecimal imp = new BigDecimal (
wdContext.currentContextElement().getImporte());
wdThis.wdGetVR_ControllerController.executeRFC(imp);
Then in the VR_Controller, I have created a method call executeRFC like this...
public void executeRFC (java.math.BigDecimal importe)
try {
wdContext.currentZbapi_createVR_InputElement().modelObject.setImp(importe);
wdContext.currentZbapi_createVR_InputElement().modelObject.execute(),
catch (Exception e) {
Thanks.
Jesus.

Similar Messages

  • Cast to a literal (ex. "java.math.BigDecimal")

    I have an array with 2 columns like:
    "java.math.BigDecimal", "2"
    "java.lang.String", "Test 01"
    "java.math.BigDecimal","120"
    "java.math.BigDecimal","148"
    "java.lang.String", "Test 02"
    Is there way to cast the second string to the correct object type, using the first string.
    Something like this:
    ("java.math.BigDecimal")("2")
    ("java.lang.String")("Test 01")
    thanks in advance,
    intovoid

    You could do this by reflection for classes which
    have a contructor which takes an single string
    parameter - which I believe all these classes do.
    Lot's of messy expections to field. The sequence
    would be something like:
    private static Object create(String[] columns) throws
    Exception {
    Class clazz = Class.forName(columns[0]);  // get
    the class
    Contstructor cons = clazz.getConstructor(new
    Class[]{String.class}); // get constructor from
    String
    return cons.newInstance(new Object[]{columns[1]});
    // construct object
    code]Except, the problem remains that the OP can still not cast the Object returned by newInstance() by using the String in columns[0] (even though the Object is a BigDecimal). Even if it could be cast "dynamically", what would it be cast into - you can not dynamically declare the variable type.
    The above method could work if all the possible objects returned implemented a common interface. Or maybe instanceof could be used to hard-code the cast to the possible objects.
    In the end, I think this type of code can lead to a brittle design.

  • NUMBER - java.math.BigDecimal

    Dear JDBC writer,
    When I have done a query in my Java program on a table in an Oracle database with a NUMBER or NUMBER(4) or NUMBER(4,2) column,
    and I use the generic method ResultSet.getObject(int column), the method always returns a java.math.BigDecimal instance.
    1. In case of NUMBER(4) I had suspected a java.lang.Integer instance. In case of NUMBER I had suspected a java.lang.Double instance. Why did you return a java.math.BigDecimal instance?
    2. Was it your intention to do further calculations with the BigDecimal instance or should I check the precision and scale of the column and get the int or double out of the BigDecimal instance?

    Thanks for the tip about getNUMBER, that may help with some of my other problems, but I'm trying to get data out of oracle spatial geometry types, and both integers and floats are stored in arrays of numbers. If you do a getarray on these or even process them as a result set, you get bigdecimals. How could I do the equivalent of getNUMBER for an array type? This is a huge performance problem for Oracle spatial and java.

  • Excel Export - java.lang.NoSuchMethodError: java.math.BigDecimal

    Hi All,
    I am working on the Excel Export example.
    When I am running the application I am getting the foll. error
    java.lang.NoSuchMethodError: java.math.BigDecimal.<init>(I)V
        at com.sap.tut.wd.tutwd_table.tablecomp.TableComp.getProductsTOTAL_PER_ARTICLE(TableComp.java:227)
        at com.sap.tut.wd.tutwd_table.tablecomp.wdp.InternalTableComp.getProductsTOTAL_PER_ARTICLE(InternalTableComp.java:176)
        at com.sap.tut.wd.tutwd_table.tablecomp.wdp.IPublicTableComp$IProductsElement.wdGetObject(IPublicTableComp.java:437)
        at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:351)
        at com.sap.tc.webdynpro.progmodel.context.AttributePointer.getObject(AttributePointer.java:158)
    Please provide some inputs as how to resolve this problem.
    Regards
    Nikhil Bansal

    Hi Valery,
    I am unable to install anything on my machine due to certain issues. So I shall not be able to implement the solution which you have suggested.
    I have a diff. approach to solve this problem. My intention is to just export some data to excel.
    So I have created a Component (ParentComp) in my application.The view in this comp contains a button Export to Excel 2003. There is an Action associated with this button.
    I have another component ChildComp.
    What I want to do is just call the Interface Controller of ChildComp from the Action ExportToExcel2003.
    I am not passing any data to the ChildComp.Instead I shall be hardcoding some table data in ChildComp itself.
    Please let me know if you are aware of some solution.
    Regards
    Nikhil Bansal

  • Adding two java.math.BigDecimal values

    Hi,
    I want to add two java.math.BigDecimal values (like a + b).
    This code returns only the a value
    java.math.BigDecimal a = new java.math.BigDecimal(0);
    java.math.BigDecimal a = new java.math.BigDecimal(23);
    a.add(b);How can I add these values?
    Thanks
    Jonny

    For your kind information, the code does not return any value. You are supposed to save the return value from the add() function call. Something like this:
    java.math.BigDecimal c = a.add(b);
    // print the value of c here

  • ADF Mobile : Could not find property inputvalue in class java.math.BigDecimal

    I tried to add an input text item to the list view like below and received an error message while navigating out of the input text field.
    "Could not find property inputvalue in class java.math.BigDecimal".
    Can someone show me some pointers about what is wrong with the below code.
    JDEV Version : 11.1.2.4
    <amx:listView var="row" value="#{bindings.Empdtls.collectionModel}"
                            fetchSize="#{bindings.Empdtls.rangeSize}" styleClass="adfmf-listView-insetList"
                            id="lv1" editMode="true">
                <amx:listItem id="li1">
                  <amx:tableLayout width="100%" id="tl1">
                    <amx:rowLayout id="rl1">
                      <amx:cellFormat width="10px" id="cf3"/>
                      <amx:cellFormat width="60%" height="43px" id="cf2">
                        <amx:outputText value="#{row.ClassCode}" id="ot3"/>
                      </amx:cellFormat>
                      <amx:cellFormat width="10px" id="cf4"/>
                      <amx:cellFormat width="40%" halign="end" id="cf1">
                        <amx:inputText value="#{row.bindings.Salary.inputValue}" simple="true" id="it41"/>
                      </amx:cellFormat>
                    </amx:rowLayout>
                  </amx:tableLayout>
                </amx:listItem>
              </amx:listView>

    Hi,
    #{row.bindings.Salary.inputValue) doesn't access a binding in ADF Mobile. Use #{row.Salary} instead.
    Frank

  • Java.math.BigDecimal;

    Hello every one thanks for your time . i am trying to understand about decimal method. example below well explain itself but i m trying to use userInput in decimal & then add the result but cant work out. any one like to give me any good example or explain which ever easy way for you guys
    Thanks in advance.
    import java.math.BigDecimal;
    public class AddTwoBigNumbers{
      public static void main(String[] args) {
        BigDecimal num1, num2;
        num1 = new BigDecimal(50.020);      "      50.020 is fix value here. How i can change with user input method. "
        num2 = new BigDecimal(100.50);
        Sum(num1, num2);
      public static void Sum(BigDecimal val1, BigDecimal val2){
        BigDecimal sum = val1.add(val2);
        System.out.println("Sum of two BigDecimal numbers: "+ sum);
    }  

    Another nice hint might be: you actually can use this args array thingy up there. Start your program like
    java AddTwoBigNumbers 50.02 100.50and access both values via args[0] and args[1] respectively.

  • Java.math.BigDecimal and Oracle Number

    Creating a Database schema in S1S4U1 from an Oracle database that included fields of Number(10,0), Studio4 used BigDecimals as the datatypes in the abstract schema.
    However, when using S1AS7 and CMP EJBs, integer values do not show up as integers in the database . Am I missing some setting somewhere? TIA.

    When I use integer values in this field, its stored as a base with an exponent in the database. I changed the fields to java.lang.Long, since I don't need a scale in this field, and even then, integer values are stored as exponential values.
    In addition, I'm running into a new problem - the primary key field (also a number (10,0) in the database, but a java.lang.Integer in the EJB, gives the following errors when a Session EJB calls the findByPrimaryKey method on the CMP EJB using the TestApp generated by S1S4:
    [11/Feb/2003:15:29:40] INFO ( 869): Bean sdComponents method findByPrimaryKey:
    com.sun.jdo.api.persistence.support.JDOUserException: Value: -5,437,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 is less than minimum allowed: -9223372036854775808 for the field type java.lang.Long.
    at com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc.assertIsValidLong(FieldDesc.java:608)
    at com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc.convertValue(FieldDesc.java:416)
    Not sure why this is showing up; the schema file in the module clearly says "Decimal"; the field in the EJB clearly says java.lang.Integer; the parameter for the find method says java.lang.Integer. Is the TestApp JSP created by S1S4 doing something to this parameter?

  • ADF: JBO-25009: Cannot create an object of type:java.math.Bi. Jdev 11.1.2.3

    Hi,
    I have created a tree structure on the left side of the page and a table on the right hand of the page. My requirement is that when I click on the node on the left side, the table on the right needs to be refreshed. For the time being the tree nodes on the left side is just one level. Eveytime I click on the node, I get the following error
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    javax.el.ELException: oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:java.math.BigDecimal from type:java.lang.String with value:Restricted
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1589)
    at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:237)
    at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:308)
    at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
    at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:244)
    at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:308)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1137)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:361)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:java.math.BigDecimal from type:java.lang.String with value:Restricted
    at oracle.jbo.common.JboTypeMapEntries$2.convert(JboTypeMapEntries.java:135)
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:869)
    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:116)
    at oracle.jbo.server.AttributeDefImpl.convertToJava(AttributeDefImpl.java:2220)
    at oracle.jbo.server.ViewRowSetImpl.prepKeyForFind(ViewRowSetImpl.java:5377)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5394)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5296)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5290)
    at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:11628)
    at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.syncTargetIter(JUCtrlHierNodeBinding.java:641)
    at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:617)
    at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.syncCurrentRow(JUCtrlHierNodeBinding.java:547)
    at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.setRowAsCurrentOnTargetIterator(JUCtrlHierNodeBinding.java:561)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.setRowAsCurrentOnTargetIterator(FacesCtrlHierNodeBinding.java:147)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.makeCurrent(FacesCtrlHierBinding.java:685)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    ... 58 more
    Caused by: java.lang.NumberFormatException
    at java.math.BigDecimal.<init>(BigDecimal.java:459)
    at java.math.BigDecimal.<init>(BigDecimal.java:728)
    at oracle.jbo.common.JboTypeMapEntries$2.convert(JboTypeMapEntries.java:129)
    ... 76 more
    Please can you let me know how I can resolve this issue.
    Thanks

    Hi, I have rechecked this issue. In the bug they say that Big Integer should be changed to Big Decimal to resolve the issue. I checked my application and saw that there is no Big Interger. Please can you guide me further.

  • Math.pow problem

    Hello guys, I trying to get math.pow of specific value but it returns me unusual ouput which i don't understand. Here is the formula
    Math.pow(3333.625, 2));
    Output:
    1.1113055640625E7
    when i used google to compute it here is the result
    Result:
    11 113 055.6
    I also notice the E7 in the end of the value. Can any help undertand what is it and how can i convert it into normal output like in google. Thank for your time.

    Use java.math.BigDecimal.
    Here's a sample
    import java.math.*;
    public class MathPow
         public static void main(String args[])
              //System.out.println( Math.pow(3333.625, 2) );
              BigDecimal bd = new BigDecimal(Math.pow(3333.625, 2));
              System.out.println(bd.toString());
    }

  • 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 ??????)

  • Java.math package does not exist!!!

    hi java experts, i really desperately need some help. ihave been trying to compile a java program i have written that imports the java.math package as i am using the BigInteger class. I am using SUN ONE STUDIO ME 4 and have j2se SDk installed. when i try to build the program in the IDE, it gives me an error message saying the java.math package does not exist. i can't understand why. i think it's an IDE problem. i tried mounting the filesystem and i mounted almost a million times in diff ways but it still can't compile. i can't find the directory of the java.math to mount into. anyway i tried to compile it at the command prompt and it can compile but with errors... so i figure that i do have the java.math class on my system just that the IDE jsut can't recognise it. i am at my wits end and gonna go mad if someone doesn't please help me.
    adeline from singapore

    Cross-posted at http://forum.java.sun.com/thread.jsp?thread=293132&forum=54&message=1155073

  • Package java.math does not exist!!!

    hi java experts, i really desperately need some help. ihave been trying to compile a java program i have written that imports the java.math package as i am using the BigInteger class. I am using SUN ONE STUDIO ME 4 and have j2se SDk installed. when i try to build the program in the IDE, it gives me an error message saying the java.math package does not exist. i can't understand why. i think it's an IDE problem. i tried mounting the filesystem and i mounted almost a million times in diff ways but it still can't compile. i can't find the directory of the java.math to mount into. anyway i tried to compile it at the command prompt and it can compile but with errors... so i figure that i do have the java.math class on my system just that the IDE jsut can't recognise it. i am at my wits end and gonna go mad if someone doesn't please help me.
    adeline from singapore

    java.math package will be there in jdk_dir\jre\lib\rt.jar. You need to set the classpath variable in your IDE for this jar file. There must be some means to edit the IDE's classpath variable.
    i mounted almost a million times in diff ways but it still can't compileIf it takes one minute for each mount then total time you have taken = 10000000 minutes = 166666 hours = 6944 days = 19 years (roughly). Java was not there 19 years ago.
    Sudha

  • Java math divide

    Greeting.
    I'm facing a problem with java math. When I outprint (1/2) it will be 0 not 0.5. Any idea?

    gtt0402 wrote:
    Ok. Thank you.Or cast it to a double when you want to use it as a double value: ((double)i)
    kind regards,
    Jos

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Booklet printing with HP Officejet Pro 8000 A809n

    Can any one help with booklet printing? I have looked at other posts and none seem to quite cover my problem. I want to print from Microsoft Office Publisher 2003, and have a PC running Windows XP. The booklet needs printing on A4 (297 x 210mm) paper

  • Adobe flash player and android

    Why is my Android suddenly none compatible with Adobe flash player?

  • URGENT Production issue  BPEL P.M. 10.1.3.1Failed to load callback message

    Hi, Any one come accross this. I have onMessage call. In my production system for same bpel process I have 4 task instance. Out of 4 it worked for 2 and for 2 I got following error in domain.log file. I have serial approver human workflow. I will app

  • Project Info

    Question about the informatin from Project Into. In a project I'm working on, before the creation/burn process, it told me the project was about 93:56min/3.0GB of 4.2GB. After the burn it reported something like 99:00min/4.2GB of 4.2GB (7min of 15min

  • PayPal account could not be verified

    I'm trying to set up payment processings. When I put in my e-mail address and click Register account I get a message saying " The PayPal account could not be verified. I know it's the correct e-mail address and I have used it to collect payments on o