Integer and floating ponit

we have developed a program. In the schema, a course objective is related a course outcome via integer (weighted scale). Now, we want to make this relationship flexible, so, course objective can be related to the course outcome via a flexible point.
Is there any easy way to do the above. Thanks for your help.

I still not understand your question. ( I think nobody understand you too)
However, here is my guess, and try to answer your question.
( Since this is "guess", the answer may-be not related at all ... )
It seems to me that you are using interger (value) somewhere, like on
return type, input parameter, class's field, or local variable, (and in some calculation statement )
Now, you try to make it more flexible, by using "float" ( or double) instead of integer.
( or you want you can use either way, integer and float )
If that is the case, it depends on how "extend" you want.
(1) If you can ignore the decimal point value, you can simple cast the float to integer.
The modification should trivail, but I think, you like "extend" to float, because,
integer is not enough precise for you ...
Then
(2) Sorry, there are no esay way, if this happend in input parameter, you can overload
the method. if this happend in local/class's variable .. etc this should esay to fix too.
But if this happend on return type ... you may need create other method.
( java does not allow overload method if only return type is different )
Well, I hope I am guessing right your question and the answer is what you are waiting for.

Similar Messages

  • Problem Integer and Float

    Hi all,
    i am having a problem in comparing a integer with a number
    (float and double).
    can any one help me in showing how we can Differentiate a
    integer and float or double in flex.
    Thanks
    Maaz

    You can check what type a value is with the 'is' operator.
    if (someVar is Number) do something;
    else if (someVar is uint) do something else;
    You can compare them with standard comparison operators: ==,
    <, >
    You can convert a Number to an int or other type:
    var someInt:int = int(someNumber);
    This conversion will simply truncate the decimal portion of
    the Number. If you need rounding, you will need to use the Math
    round function.
    Vygo

  • Integer and Float instructions in SPARC-V9

    Hello,
    My question is about SPARC-V9 instructions. I am trying to classify some instructions as Integer or Float. I want to know do we categorize branch instructions as integer? What about NOP? What about load/store?
    Another issue is, when I see
    LDF    Load Floating-Point Register
    I don't know what to decide. Loading something in to a floating point register, is that an integer operation or float?
    Already I have read some sections of sparc reference manual, however didn't end-up with a clear explanation which instructions are float and which are integer.
    Looking forward for any suggestion. Thanks

    Hello,
    My question is about SPARC-V9 instructions. I am trying to classify some instructions as Integer or Float. I want to know do we categorize branch instructions as integer? What about NOP? What about load/store?
    Another issue is, when I see
    LDF    Load Floating-Point Register
    I don't know what to decide. Loading something in to a floating point register, is that an integer operation or float?
    Already I have read some sections of sparc reference manual, however didn't end-up with a clear explanation which instructions are float and which are integer.
    Looking forward for any suggestion. Thanks

  • Integer and numbers

    dear all,
    when created infoobjects i notice i have option to create either numbers of integer. What are the major differences between the two and how should i use it?
    Thanks in advance.

    Number:
    ==========
    If you choose this option, the Key figure is run as a number. Numbers do not have any reference to a unit of measure or to a currency.
    DEC (a packed number with 3 decimal places) and FLOAT (floating point number) are permitted as technical data types.
    Integer:
    ==========
    If you choose this option, the key figure is run as a whole number, or numbers. Whole numbers do not have any reference to a unit of measure or a currency.
    Only INT4 (4 Byte integers without decimal places) is permitted as technical data types.
    Regards
    Anujit Ghosh

  • Pack  and Floating Point Data Type in ABAP

    Dear All,
    I am new to ABAP. Started with data types. Came across pack and floating point.
    Please let me know what PACK  and Floating Point stands for with few examples and the main difference between them.
    Regards
    Arun V

    Hi,
    You'd better ask this question in ABAP forum http://forums.sdn.sap.com/forum.jspa?forumID=50 .
    Best Regards,
    Ada

  • Inline and floating locked in portrait view

    My photo book was rejected today because it's not viewable in portrait format.  My intention was to have the book ONLY be viewable in landscape format and that it's more than obvious that you need to turn the pad to landscape to view it–the thing is primarily composed of landscape-format images!
    I saw in today's "disappearing shapes" thread that you need to edit in portrait and layout in landscape, so I'm trying out that approach.
    In portrait mode, I can't get an image to appear in the text column, only as a thumbnail in the left margin.  Inline and Floating are greyed out, only Anchored is available.
    How can I unlock these?  Will that allow me to place the images in the text as in Landscape format?
    Thanks.

    Never click on anything like that and resubmit.
    Test it on a device first.
    Testing it goes without saying, right?  Seems to work.  You saved me a ton of work redesigning a compromised layout.  If I could give you doube bonus points I would! 
    So by clicking disable portrait view it will force the landscape layout to resize smaller to fit portrait view like a pdf does?
    No idea what that means, sorry. How could something resize from something it doesn't do...
    Where did you learn that iBA's portrait view supports PDFs?
    I was talking about looking at a PDF version of this book in iBooks.  When you rotate the pad the landscape image simply rotates and resizes.  Disabling portrait in .iba just locks the book in landscape no matter how you turn the pad.  Perfect for my needs.
    Thanks for your help.

  • Managing petty cash float and float-reimbursement

    HI
    I want to know best functionality in Oracle EBS to Manage petty cash float and float reimberstment.
    I am looking at comprehensive solution in oracle EBS for petty cash requirements. Such as expense reimberstment to employees in the organisation as well as manging float and float reimberstment.
    I have checked Internet expense functioality and i feel most of the expense reimberstment to employees can be done through iexpense and AP
    However I want to know best functiolaity in Oracle EBS R12 for the process of managing petty cash float and float reimberstment.
    Thanks

    Guyz,
    Unfortunately there is no standard functionality available in Oracle EBS for handling Petty Cash. But there are some Workarounds i recommend to my clients depending on the level of detail they require
    Either you create a Petty Cash Supplier
    and second workaround is creating a Petty Cash Bank.
    Or a Fusion of both.

  • Precision loss - conversions between exact values and floating point values

    Hi!
    I read this in your SQL Reference manual, but I don't quite get it.
    Conversions between exact numeric values (TT_TINYINT, TT_SMALLINT, TT_INTEGER, TT_BIGINT, NUMBER) and floating-point values (BINARY_FLOAT, BINARY_DOUBLE) can be inexact because the exact numeric values use decimal precision whereas the floating-point numbers use binary precision.
    Could you please give two examples: one where a TT_TINYINT is converted to a BINARY_DOUBLE and one when a TT_BIGINT is converted into a DOUBLE, both cases give examples on lost precision? This would be very helpful.
    Thanks!
    Sune

    chokpa wrote:
    Public Example (float... values){}
    new Example (1, 1e2, 3.0, 4.754);It accepts it if I just use 1,2,3,4 as the values being passed in, but doesn't like it if I use actual float values.Those are double literals, try
    new Example (1f, 1e2f, 3.0f, 4.754f);

  • Should I save memory by using byte, short and float?

    Our teacher tells us always to use int and double. But what if I don't need such precision or large values?
    Shouldn't I use byte, short and float instead?

    You don't save any memory if you use floats instead of doubles in a method. These variables only exist on the stack when the method is executing. Also remember that Java may do type conversions from float to double in expressions. This may make your code slower.
    If you have a class with large quantities of doubles, for example an array of 100000 doubles, then you may consider using floats, because the memory saving is substantial. If you access the array from outside the class via double methods you can easily do this change local to the class late in the development process.
    I'd say generally it's better to do as your teacher says and standardize on doubles and integers. If you write your program well you can always optimize later if you have to.

  • WLPI, Event Condition XPath and floating pt values

    The documentation (Ch 6 specifically) for both WLPI 1.1 and 1.2 refers
    to a function ToDouble to be used as the workflow condition:
    ToDouble(XPath("/customer/balance_due/text()")) >
    ToDouble(XPath("customer/_credit_limit_amount/text()")) * .75
    This function does not appear to implemented and is not available in the
    Workflow Studio. I am able to route documents to specific workflows
    based on integer and string values, but cannot get routing on
    non-integer values to work.
    (ToInteger(.....) > 100.00 does not work either)
    Has anybody gotten this to work ?

    I believe that you are correct... I would contact Technical Support and file this
    (i.e., the ToXXX(XPath("...")) stuff) as a bug.
    Brian Hall wrote:
    I don't think you can you use workflow variables within for the Condition on a
    Start action, can you ? I don't think that the variables are evaluated until
    the workflow has begun, but the workflow doesn't begin unless the Condition is
    met. (catch 22)
    Robert Patrick wrote:
    One of the problems that I have seen in the past was that these ToXXX()
    functions did not work properly if the argument was an XPath expression. I
    could get them to work if I split them into two expressions and used a
    workflow variable to store the intermediate result, i.e.,
    Assign result of XPath("/customer/balance_due/text()") to a workflow
    variable of type string, say foo.
    Then, use ToXXX(foo) to assign the value to a workflow variable of type
    XXX. I thought this was fixed in WLPI 1.2 but it may not have been...
    Hope this helps,
    Robert
    Brian Hall wrote:
    The documentation (Ch 6 specifically) for both WLPI 1.1 and 1.2 refers
    to a function ToDouble to be used as the workflow condition:
    ToDouble(XPath("/customer/balance_due/text()")) >
    ToDouble(XPath("customer/_credit_limit_amount/text()")) * .75
    This function does not appear to implemented and is not available in the
    Workflow Studio. I am able to route documents to specific workflows
    based on integer and string values, but cannot get routing on
    non-integer values to work.
    (ToInteger(.....) > 100.00 does not work either)
    Has anybody gotten this to work ?

  • Diff between Integer and Number in Oracle

    Hi,
    What's the differet between integer and number in Oracle?

    u can say integer is a subset of number.
    integer provided by oracle for compatability with ANSI/ISO
    u can use number with scale=0 to represent integer values.

  • Why have byteValue in Short, Integer and Long?

    What good is the method byteValue() in Short, Integer and Long? It really only makes sense in Byte. This only helps if you are only interested in downcasting your number to a byte. It seems to me Number should also implement toByteArray() or something since all of the subclasses could at least return an array with one element.
    Maybe we should just have a method toChar() with no args in String and do away with toCharArray()!?
    Please help me out if I am missing something here.
    MR

    yeah, a toByteArray() method would be pretty damn useful!
    a little query regarding byteValue() it says it may involve rounding or truncation, but in none of the subclasses does it specify which of these will occur ;/
    would a short with the value 00000000 11111111
    be returned as 01111111(rounded) or 11111111(truncated)?
    rob,

  • Dreamweaver and floating dialog

    Dreamweaver and floating dialog. You see it on a lot of websites. I am not sure if this done in JavaScript or JQuery. I was wondering if someone can point me to a sample of doing this. I need to incorporated JavaScript and JQuery into my pages .

    <!doctype html> 
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>jQuery UI Dialog - Default functionality</title>
      <link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css">
      <script src="//code.jquery.com/jquery-1.10.2.js"></script>
      <script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
      <link rel="stylesheet" href="/resources/demos/style.css">
      <script>
      $(function() {
      $( "#dialog" ).dialog();
      </script> 
    </head>
    <body>
    <div id="dialog" title="Basic dialog">
      <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
    </div>
    </body>
    </html>
    Also refer to the Documentation:
    Dialog Widget | jQuery UI API Documentation
    Nancy O.

  • Time and float masks

    Hi everyone,
    I got a question, is there anyway to use a mask to time and float values using CSS or maybe another way?.......what i mean is that i wolud like to show time in a outputtext like 10:20:09(hh:mm:ss) but this value stored in a db like a String 102009, and the same thing with floats like 120,000,000.89 but stored like 120000000.89.......
    Thanks in advance
    Santiago

    Joachim i don't know if you can give a hand....i checked what you tell and I can parse a String to date format without milliseconds......but i only need the time, but it gets me the entire date....i checked for the method getTimeInstance() but it returns the same....i'm trying some like this....i hope you could give me a hand
    DateFormat a= new SimpleDateFormat("kkmmssSSS");
    a.getTimeInstance(DateFormat.SHORT);
    try{
          Date pase = a.parse("120350123");
          pase=pase;
          System.out.println(pase);
    }catch(Exception e)
               {}that code returns me Thu Jan 01 12:03:50 GMT-05:00 1970 and i just need 12:03:50 with the milliseconds
    Thanks in advance,
    Santiago

  • Jaxb Integer and Boolean types not initialized

    I just converted from using JWSDP 1.6 to 2.0. I noticed that when I used Jaxb to generate my beans the default types for int and boolean are now the wrapper classes Integer and Boolean. With version 1.6 I did not initialize my ints or booleans. Now with version 2.0 I find I have null issues because the fields that have the types Boolean and Integer are not initialized.
    I would like to change how Jaxb generates the beans so that one of the two options listed below will occur:
    1) The field types that need integers and booleans would be primitive types instead of the wrapper classes.
    or
    2) I would like to change the declaration from:
    protected Boolean someboolean;
    protected Integer someinteger;
    to:
    protected Boolean someboolean=new Boolean(true);
    protected Integer someinteger = new Integer(0);
    How can I do this?
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    I found the answer: The problem was that I had used the attribute minOccurs="0". This caused the code generator to make the types either Boolean or Integer. I removed the attribute minOccurs="0" then the system generated the fields with the primatives int and boolean. Now my fields are initialized.

Maybe you are looking for

  • Verizon's iPhone 4S is dropping the first call almost all the time?

    Hi. I have a verizon iPhone 4S. Everytime I make the first call to someone, I don't hear anything. When I end that call and try calling again, it works. This has been happening almost all the time. I tried letting the phone app turned on but it doesn

  • How to add custom field to ical

    Hi I run a small business from my mac pro and my iphone. I would like to get a good workflow but it seems I am missing a few bits of information. First I would like to add custom fields to ical so that I can gather all the information I need in one s

  • Is photostream in iPhoto safe from deletion?

    I'm trying to work out the difference between an iCloud backup of my photos from my iPhone and Photostream and I'd appreciate some help. Yesterday whilst out and about, I got the message that my iPhone couldn't be backed up to iCloud as my storage wa

  • Disabling Management Packs automatically

    Not sure if this is the right place but after a duplicate with RMAN I have to recreate the EM repository with emca. Everything is fine and fully automated except I have to disable all features in the Management Pack Access manually while control_mana

  • Pull down menu in Oracle Portal

    Hi, How can a drop down menu be implemented in Oracle Portal template. Thanks Deepmala