Non whole number powers

Hi,
this seems quite a simple problem, but i can't see asimple solution,
if i want to carry out the calculation of x to the power y, where y is a whole number, labview caters for this in two ways,
either through the 'scale through power of two', which requires you to devide you x by 2, but it works, or
by initialising an array of the input with x, with a dimension size of y, and then 'Multiply array elements'
Bot hof these seem to work for a whole number.
What if wanted to have a power of say y=0.2?? or any non-whole number??
is there an x^y icon i've missed???
Please help!! - many preemptive thanks!!
John P.
labview 8.20

Are you expecting this

Similar Messages

  • Queue SYSFAIL after message split "Whole number overflow on addition"

    Hi,
    I'm using a message mapping in PI 7.1 to split a message in several messages for each line of an invoice. It's a mapping 1 to 0..n. Everything went well since I had maximum 100 invoice lines to split (then 100 messages at the output of the mapping).
    But since I have now messages with 200 invoice lines, everytime the queue is stopped in SYSFAIL status with a message "Whole number overflow on addition". But all messages are processed even if the queue is stopped.
    ST22 gives me a COMPUTE_INT_PLUS_OVERFLOW in the method determin_message_size. It seams that PI doen't support a large message at output of a mapping. How can I split the message into multple messages at the outplut of a message mapping ?
    Does anyone have a solution ?

    Hi,
    I guess you can use the Message Packing feature.
    See below the links to help you:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/46/7ef9124f176be3e10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nwpi711/helpdata/en/46/7a6e3469454b2be10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nwpi711/helpdata/en/46/79e8e13872275ae10000000a11466f/frameset.htm
    Regards,
    Caio Cagnani

  • Whole number field formatted as timezone in CRM 2013 SP1UR1 gives error on saving

    Hi,
    I added a whole number field formatted  as time zone to the appointment form and when I save the record I get an error saying
    Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.InvalidCastException: Unable to cast object of type 'Microsoft.Xrm.Sdk.OptionSetValue' to type 'System.IConvertible'.
    This error is coming from the timezone field and only happens when I have data in the field. Has anyone seen this?
    Thanks
    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    More info, the error occurs on pipeline stage 30 of the Book or Reschedule message and the same thing happens in CRM 2015. I've started a thread on connect with URL
    https://connect.microsoft.com/dynamicssuggestions/feedback/details/1128206/crm-2013-sp1ur1-cant-handle-the-timezone-field
    This must be rather new because I've tried it in CRM 2011 UR late and it did not occur there, I haven't tried CRM 2013 RTM though so I can't say if it's a CRM 2013 or a CRM 2013 SP1UR1 issue.
    BTW, the 2015 org was a complete vanilla so I've pretty much ruled out custom code as a culprit :)
    Regards
    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

  • When I sort a column of figures, it sorts by the first digit. How do I get it to sort by the whole number?

    I have a column of numbers, Specifically: 5.2, 42.0, 25.5, 2.4, 11.8, 0.9, 0.5. Notice how it has sorted by the first digit, not the whole number. In other words 5.2 is ranked higher than 42, because 5 is larger than 4. What do I turn on or off to make it behave sensibly?
    Any answers would be appreciated.
    Martin

    Hi Martin,
    Are the cells formatted as Text (left aligned, as in Column B)?
    Data Format in Column C
    Column C will sort as Number.
    Regards,
    Ian.

  • Rounding up to nearest whole number question

    I have a calculation script that sometimes returns a decimal result. How would I create a script that would round that decimal up to the next whole number? Anyone have any idea's?

    okay, I am not very good with this. That command is new to me. Where would I place that script if I already have a javascript script in the calculate event of that numeric field I am trying to get rounded up?
    I basically have the javascript code in the numeric fields calculate event set to
    this.rawValue = subform1.numericField1.rawValue;
    I tried putting your script on the change event hoping I could use formCalc there but get a error when testing saying Ceil is not defined. Thanks

  • Rounding to a whole number

    What is the proper syntax for rounding to a whole number.  In my spread sheet I have a function set up to apply a divisor to cost, in this case  = F7 $625 / G7 .65 = $961.54.  I simply want the number to round to the nearest whole dollar amount  $962.00

    Hi ghemmen,
    or you could just do with formatting.
    quinn

  • Rounding text size to nearest whole number?

    I've had to rescale some artwork, but now I'm left with type sizes that are 71.68px tall, 34.51px tall, etc.
    Is there a script that'll snap all the text in a document to it's nearest whole number or 0.1 decimal?

    // rounds the size of text in all textFrames in your document
    var aTFrame = app.activeDocument.textFrames;
    for ( i = 0; i < aTFrame.length; i++ )
    var fractionSize = aTFrame[i].textRange.characterAttributes.size;
    var RoundedSize = Math.round(fractionSize);
    aTFrame[i].textRange.characterAttributes.size = RoundedSize;
    redraw();
    This will do all the text frames. Copy the above, paste it into a text editor or the Adobe ESTK (ExtendScript Tool Kit) and save as a plain text file with a .jsx extension. Place it into Applications/Adobe Illustrator CSX/Presets/en_US/Scripts folder and restart AI. Run it by having a document open in AI and call it from File>Scripts>scriptname.

  • Rounding off to nearest whole number without condition

    hi,
    i want to round a real number to an integer value,,wihout any conditions like
    10.01 should be 11
    10.1 should be 11 and like that
    is it posible to do it?
    thanks in advance.
    amit

    It doesn't look like you are trying to round to the nearest whole number here. It looks like you are trying to find the smallest integer value that is greater than or equal to the real number. If so, you would want to use the CEIL function (i.e.
      1  SELECT CEIL(10.01)
      2*   FROM dual
    SCOTT @ hp92 Local> /
    CEIL(10.01)
             11Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Formula rounding to nearest whole number

    Hello,
    I have created the following formula ( Metrics."# of Leads Resulting in Won Opportunity"*100 /Metrics."# of Leads" ) and displayed the results in percentage but it looks to round to the nearest whole number does anyone know why this might happen. Also i am using 2dp in the results i am hoping to get the actual result rounded to 2dp and not the nearest whole number.

    Hi !
    I think that if you add the ROUND function, this will work... :
    ROUND(Metrics."# of Leads Resulting in Won Opportunity"*100 /Metrics."# of Leads", 2)
    Hope this will help, feel free to ask more !
    Max

  • Whole number rounding off in bom

    is it possible not to round off whole numbers in the bom component quantity? for example, when i input the number 8.000, the system rounds it off to just 8.

    Hi,
    Please let know your unit of measurement.
    Goto CUNI set the Decimal places and decimal pl.routing = 3 for your unit .
    Now try with decimal places at BOM.
    If your unit is related to whole number like Nos, EA system will give warring message.
    Pradeep

  • DTW message 'value must be a whole number for property 'PurchaseWeightUnit'

    I am trying to import Sales and Purchase weights via DTW using the 'oItems' template and get the message that the purchase weight unit needs to be a whole number.  I have the # of decimals to display for 'units' as 3 in Administration/System Initialization/General Settings in the 'display tab.  What could be cause this error?   I need to have weights set to 3 decimals...

    Hi All,
    Misunderstanding !
    This is a unit code of the weigth not the numer of digits!!!!
    defined in: Administration - Setup - Inventory - Weight UoM
    Use the unitcode field there , example 3 for KG.
    use the following query the determine the code there
    SELECT *  FROM OWGT T0
    Regards
    J.

  • Is there a non-800 number for US tech support?

    I need to call US tech support from France. I can't dial the 800-642-3623 for tech support in the US from France. Does anyone know a non-800 number to reach tech support for Acrobat Pro?
    Thanks.

    Guess I found the answer myself. Change the 800 to 880 and it becomes a direct dial number.

  • Need urgent help! How to check if the generated number is a whole number

    Hi,
    I have a simple issue but I need some assistance. I am
    calculating a number and the result number sometimes a whole number
    but in some cases decimals are present. Decimals do not need change
    but whole numbers need to change. So for example if the end result
    is "6" I need it to show it as "6.0" in a field beacuse that is the
    way the calculator should display it according to request.
    How can I check that the result number is a whole number and
    then add ".0" to it?
    I just included a simple script below.
    if (outputnumber == ?) {
    resultNum = Number(String(outputnumber+".0"));
    } else {
    resultNum = outputnumber;
    Thanks,
    Attila

    Hi reinhat,
    That means that "outputnumber" wasn't something that can be
    converted to
    a number. When you trace this value, what do you see?
    Regards,
    Patrick Bay
    BAY NEW MEDIA
    "reinhat" <[email protected]> wrote in
    message
    news:fndgeh$484$[email protected]..
    > The above mentioned example returns "NaN".
    > How can it return numeric value?

  • Java's Defualt Literal Types (Whole number literals defaults to int?)

    Hello guys, its my first Post here, just want to ask
    is java whole number literals defaults to int?
    check these codes
    ---code 1:---
    Java Code:
    1
    byte b = 10;
    //code 1 works
    ---code 2:---
    void someMethod(byte a,byte b)
    System.out.println(a+b);
    then I use it
    someMethod(10,5);
    //code 2 doesn't work, it yields an error
    Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    The method sum(byte, byte) in the type Test is not applicable for the arguments (int, int)
    now these are my questions
    1. does java whole number literals defaults to int? (I think so, basing on the code)
    2. if question no. 1 is true, then why code 1 worked? it shouldn't right, coz its a downward cast (from int to byte).
    3. what really happens under the hood?
    by the way, the jdk version I used is 1.7.0
    Thank you guys in advance

    915343 wrote:
    Hello guys, its my first Post here, just want to ask
    is java whole number literals defaults to int?Yes.
    1
    byte b = 10;
    //code 1 worksThe literal expression *10* is an int. But it's a compile-time constant that fits into a byte, so the assignment is okay without a cast.
    ---code 2:---
    void someMethod(byte a,byte b)
    System.out.println(a+b);
    then I use it
    someMethod(10,5);
    //code 2 doesn't work, it yields an errorBecause 10 and 5 are ints, not bytes, and there's no method that can take int as args. The automatic narrowing conversion that takes place for assignment does not come into play when finding a matching method signature.
    1. does java whole number literals defaults to int? (I think so, basing on the code)Yes.
    3. what really happens under the hood?Read the JLS for those details.
    http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10
    http://java.sun.com/docs/books/jls/third_edition/html/conversions.html
    http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.12
    Edited by: jverd on Feb 17, 2012 3:49 PM

  • Rounding a percent to a whole number

    Hello,
    I'm still fairly new to performing script calculations and with this particular one seems a bit more complex for me.
    I'm trying to determine the percent difference between 2 numbers and display the percentage as a whole number. Logically my calculation looks like
    (numericField1 - numericField2 / numericField1 * 100)
    (ex. 1000 - 850 / 1000 * 100 = 15%)  
    I need assitance with my calculation and especially rounding the % to a whole number. I would not like any answers displayed like 22.66666%
    The code below is somethig I tried
    event.value = roundNumber( ( this.getField(numericField1).value - this.getField(numericField2t).value  )  / this.getField(numericField1).value , 2 ) + '%';
    function roundNumber(num, dec) {
            var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
            return result;
    Any advice would be great!

    Actually Adobe makes this really simple for you.  If you use a numeric field to display the result, the display pattern for the field will control how the number is shown.  You can set a percentage pattern:"num{zzzz9.99%}" to control how many digits will be displayed, and how many digits will be significant past the decimal point.  If there are more digits, Adobe will automatically round the number.  In the attached example I used the pattern
    "num{zzzz9%}" to ensure that only a whole number will be displayed.  Adobe will use normal rounding rules: 0-4 rounds down, 5-9 rounds up.
    Additionally, the percentage pattern will automatically multiply the field value by 100, so you don't need to do that in your script.
    For the example attached, I added your calculation as FormCalc script to the Calculate event of the result field.  The script is now simply:
    (NumericField1 - NumericField2) / NumericField1
    Adobe takes care of the rest.

Maybe you are looking for

  • HELP! i have a photosmart Premium all in one printer C309a i can't seem to print custom size papers

    I have tried all of the suggestions on this post for similar issues, changing the custom size on teh printer folder, the application, the white space within the printer preferences >server nothing works.. can someone please HELP i need to print 5 x7

  • Varied problems after upgrading to 10.4

    Went from 10.3.9 to 10.4.11 - repaired permissions before and after upgrade. I wonder if these issues are related. 1. Blank DVD's now mount with the "fpbf" extension. 2. Cannot connect to to other computers on the network - but can connect from them

  • Convert File endSeparator Parameter

    Hello everybody, I'm configuring a scenario like this Txt File->XI->ABAP Proxy, and I'm having trouble to make the endSeparator parameter work, here is the example of txt file record that I'm using: the payload in the inbound message in SXMB_MONI it'

  • Please help need urgent support

    Can anybody tell me how can I download                "CS5 - 11.0.0.4909"

  • Best Design for Master data

    hi,   I would like to get your suggestions on the data modelling:   I have material, mat_plant and mat_sales.I need to create reports on these master data. But when i created a infoset on those 3 master data, one of my key figure "amount" is becoming