Get Remainder at devision

hi all,
I am trying to get remainder at devision time, but i can only get the devidand.
Any one know any function or method for getting remainder.
For Eg.
X = 6 / 2.
then remainder is 0.
X = 7 / 2.
then remainder is 1.
i can get the answer 3 and 3.5 symontenously.
Please help me if any one know any option,
Thank You,
Jahnavee Trivedi

Hello,
Data: X type float.
X = 6 mod 2.
Try this.

Similar Messages

  • Perform multiplication, division n get remainder without using arithmetic o

    hello,
    perform multiplication, division n get remainder without using arithmetic operators
    thanks in advance
    manasi

    ram.manasi wrote:
    i can program myself however i am new to programming and have no clue how to perform arithmmetic operations without using arithmetic operators n would like to know how to go about itwell, we're not your private code-monkeys nor are we tutors. We are usually best at answering specific questions but many of us get our hackles up when someone simply demands an answer. I suggest that you find out what your teacher is expecting of you here. I would guess that this involves some recursion, but it is up to you to find out. Do some work. Then if you have a specific question, please feel free to come back and ask for help. nicely.

  • Get distinct values from a coma seperated string variable

    Hi ,
    I am getting an comma seperated string as in parameter, now i want to get the distinct values from that string and will use those values to pass it to a query.
    any help

    try this:
    sorry about the messiness - it's just quickly copied from some badly formatted code....
    TYPE T_FieldArray IS TABLE OF varchar2(255) INDEX BY BINARY_INTEGER;
    function SPLIT_CSV_FIELDS (
    p_Input_Str in varchar2,
    p_Delimiter in varchar2,
    p_Quote_Char in varchar2)
    return t_fieldarray is
    v_FieldArray T_FieldArray;
    v_input_str varchar2(4000);
    v_field_str varchar2(255);
    v_pos number;
    e number := 0;
    v_delim_str varchar2(3);
    cur_pos number;
    begin
    loop
    -- find each delimiter char in string
    v_pos := INSTR(v_input_str, p_Delimiter);
    -- each time delimiter char is found
    if v_pos > 0 then
    -- current field value is current string to position prior to delimiter char
    v_field_str := UPPER(SUBSTR(v_input_str, 1, v_pos - 1));
    -- remove quote char from end of field (if any)
    v_field_str := TRIM(TRANSLATE(v_field_str, NVL(p_Quote_Char, p_Delimiter), ' '));
    -- increment element number
    e := e + 1;
    -- get remainder of input string to check
    v_input_str := SUBSTR(v_input_str, v_pos + 1, LENGTH(v_input_str) - v_pos);
    v_FieldArray(e) := v_field_str;
    else
    -- increment element number
    e := e + 1;
    -- last field value is what's left of input string less quote char (if any)
    v_field_str := TRIM(TRANSLATE(UPPER(v_input_str), NVL(p_Quote_Char, p_Delimiter), ' '));
    v_FieldArray(e) := v_field_str;
    exit;
    end if;
    end loop;
    return v_FieldArray;
    end;

  • I am losing network connection and a message"another devise is using you IP address

    I am losing network connection and get amessage "another devise is using your computers IP adress"

    http://osxdaily.com/2010/09/19/another-device-on-the-network-is-using-your-compu ters-ip-address/

  • Just brought a new 5s. Went home and backed up my 4s and when I plugged in the new phone it identifies it as a different devise, it won't sync it to replicate the old phone.

    I just brought a new 5s. I went home and backed up my old 4s. When I plugged in the new devise and hit sync, it took about 5 seconds. It appears as a second devise and isn't updating the old phone to the new devise. I phoned Apple Support and they want to charge me $120 to complete the request, very annoyed as this should just be standard when you get a new devise. All I want to do is take all the old information from my old phone, and put it on my new one.
    Would appreciate any help.
    Thanks

    I suggest you start your iPhone 5S setup over from the very beginning.
    Do that by erasing the entire contents of your iPhone 5S.  Do Settings > General > Reset > Erase all content and settings.  That will, in fact, erase your iPhone 5S.  You will then start with the "Welcome" screen.  Enter your WiFi and Apple ID information.  You will then be given the opportunity to set up as new or to set up using the iPhone 4S.  That is what you are looking for.

  • Getting message "Checking device" everytime I try to copy and cannot get to menu.

    Product - HP Officejet 6700 Premium  - Serial number [edited by Moderator]
    Problem - Everytime I try to go to copy  I get message "Checking devise  This process might take several minutes.  Do not turn off the device, do not open or close any covers."  I can not get to the menu so that I can copy.   The printer will print if I take it off wireless.  I also need to change wireless setting.

    Hi @Upset11 ,
    Thank you for visiting the HP Support Forums. I'm sorry to inform you that your post has needed some editing to remove personal information such as the Serial Number in your Post. From our Rules of Participation:
    Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
    If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
    Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
    Thank you
    George
    I work for HP

  • Problem with Main window in smartforms

    Hi All,
    I am creating a smartform, in that i need to restrict the no. of line item is to 15 and i need to draw a box for it. My problem is if i am displaying 15 line items the box will be drawn correctly and if i use only 3 line item then the box is drawing only for 3 line item. But i need to draw a box for 15 line items constantly at any given point of time irrespective of no. of line items. I am displaying this info using mail window, plz do help me.
    Thanks & Regards,
    pavan.M

    Hi,
    First describe your internal table and based on that you deifne another internal table in which you will have some 2 dummy fileds
    suppose if you internal table has 10 lines then you need to have 5 more lined to print right?
    say describe lines is v_lines
    v_rem = v_lines mod 15. (you will get remainder here)
    then v_count = 15 - v_rem.
    before main window do code as following .
    do  v_count times.
    v_dummy1 =  text (maintgain soem text in this field)
    v_dummy2  will not have any value.
    append these values to it_dummy table.
    enddo.
    And when you loop main table count one more variable  say v_cnt.
    Now you can loop your dummy internal table based on condition.
    the condition would be   v_cnt  eq  v_lines .
    and print empty text . dont print the field that have some text.
    loop dummy table only after printing main table data in the main window.
    Hope you got the logic
    Dont forget to reward points
    Regards,
    Nageswar

  • Maintaining report in background

    Hi experts,
         i have a question related to fico development, as follows:
    i've three folders created on appl server.
    the first month data should be uploaded to the folder one,
    the second month data should be uploaded to the folder two,
    the third month data should be uploaded to the folder three,
    But the fourth month data should overwrite the first month data in folder one and vice versa.....
    Please help me experts asap..........................
    Correct answers will be appreciated with good points.............
    Thanks & Regards
    Sunitha

    Hi sunita,
    ok, lets say you folders are named folder1, folder2 and folder 3.
    Then you can construct the folder name as a concatenation of 'folder' and [(month + 2) mod 3 + 1].
    data:
      lv_folder type file,
      lv_month type i, "runs from 1 to 12
      lv_suffix type c.
    lv_suffix = ( lv_month + 2 ) mod 3 + 1
    concatenate 'folder' lv_suffix into lv_folder.
    this results in
    january is 1, add 2 makes 3, divide by 3 and get remainder 0, add 1 is 1, folder is folder1 
    february is 2, add 2 makes 4, divide by 3 and get remainder 1, add 1 is 2, folder is folder2 
    march is 3, add 2 makes 5, divide by 3 and get remainder 2, add 1 is 3, folder is folder3 
    april is 4, add 2 makes 6, divide by 3 and get remainder 0, add 1 is 1, folder is folder1 
    and so on.
    I hope I got your question right.
    Regards,
    Clemens

  • Integer and fractional part of the number

    Hello everybody,
    I want to divide the floating point number to 2 integer words, first will receive the interger part of number, and the second will receive the fractional part of the number.
    For example: I have number 751.98 in DBL, then I create two integer fields: first has value 751, second has value 98.
    I have tried simple conversion from DBL to I16, but it always rounded me to higher interger. I don't want to round it. And I just don't know how to transform the fractional part to integer. Are there any specialized functions for this? Maybe should I use log10 or similar?
    TIA,
    Jacek.

    The place to start with this problem is the IEEE-754 numerical
    representations:
    32 bit floating point is internally:
    highest order bit is the sign bit.
    the next 8 bits are the exponent bits
    the last 23 bits are the mantissa bits
    the mantissas and exponents are binary.
    the mantissa value in a 1.22 fixed point binary number, i.e. the most
    significant binary bit is equal to 1, the next most is equal to 1/2,
    the next most is equal to 1/4, etc., etc.
    The exponent part can go between 2^-127 and 2^128
    You should be able to cast your 32 bit float to a 32 bit unsigned
    integer, separate it into sign, mantissa and exponent parts, use the
    exponent to rotate left or right your mantissa decimal point by the
    exponent value and then separate the whole part from the fractional
    part and then put each into the I16's or U16's as you want.
    Douglas De Clue
    LabVIEW programmer
    [email protected]
    [email protected] (Michael Ross) wrote in message news:...
    > This problem needs some limits. Like: only return the decimal portion
    > out to 6 places.
    >
    > First run the number through Remainder and Quotient (divisor of 1).
    >
    > 751.98743674645641000000 gets remainder of
    >
    > 0.98743674645641021900
    >
    > "floor" is 751
    >
    > Take the remainder and send through Decimal to Fractional String (this
    > is where you set your number of decimal places [default is 6]).
    >
    > returns 0.987437
    >
    > Then use String Subset and set it to an offset of 2 (cleans off the
    > leading zero and decimal point) with the "length" input left at the
    > default of "rest" (of string).
    >
    > 987437 (in string form)
    >
    > Now use String to Decimal Number
    >
    > returns 987437 (as a decimal number)
    > ====================================
    > I think if you don't limit the number of places it is ugly. It is
    > ugly going from numbers to strings and then back. But all numbers is a
    > bad thing.
    >
    > The alogirithm for finding the answer mathematically is nasty.
    > Especially without a limit on decimal places. You have to figure out
    > the number of decimal places and multiply by the inverse of the last
    > decimal place. Sounds easy.
    > =============================
    > Try this: New number: 751.98652
    >
    > Truncate out the remainder (Remainder and Quotient (divisor of 1)):
    >
    > 751.98652 ---> 0.98652
    >
    > Mult by 10 ----> 9.8652
    >
    > Take the floor (9) and divide by 10 ----> 0.9
    >
    > subtract the new number from the old. Is the answer non-zero? Not,
    > then keep on
    >
    > 0.98652 - 0.9 = .08652 which not equal to 0
    >
    > If it is zero, the floor is the answer.
    >
    > Continue - Not:
    >
    > This time multiply by 100 ----> 98.652
    >
    > floor is 98, divide by 100 ----> 0.98
    >
    > Subtract 0.98 from 0.98652 = .00652 still non zero.
    >
    > Keep on. 1,000, 10,000...When you get to 100,000
    >
    > 0.98652 x 100,000 = 98652.00
    >
    > Get the floor
    >
    > divide the floor by 100,000 to get the original number (remainder is
    > now 0.000), compare to original remainder
    >
    > 0.98652 - 0.98652 = 0. Yay.
    >
    > Take the 98652 and go with it. The last place was the one hundred
    > thousandth.
    >
    > I can't take credit for the last, I had uglier stuff going on. I did
    > do the string thing.
    >
    > I swear this is just like some sorry homework problem.
    >
    > Mike

  • Apple watch keeps disconnecting headphones

    Ok, so 2 days now with multiple forgetting and repairing to see if it would solve the problem but the watch keeps dropping my LG bluetooth headphones.
    I keep getting searching for devise to connect too on my headphones, about every couple of minutes. obviously I'm within range despite what it's doing cause the watch is on my wrist and the headphones are on my head, so no more than 3 feet away at any given time.
    Is anyone else having this issue and if so how did you solve it? I'm beginning to think this thing is just broken.
    Thank you,
    d

    I just finished chatting with an apple rep, basically none of the features that were advertised that I wanted are working currently.
    the Wifi sync is pretty much a broken feature, if it's working for you, great, but they are no longer pushing that as it doesn't work. when it does they said it's very limited. Bluetooth is spotty to non existent depending on your headphones. no wireless music to watch to headphones at all.
    So I returned it.
    As always Apples support staff and ease of returning were top notch!
    Hoping Rev. 2 is much better!
    d

  • Need help finding errors.

    I need help finding the error(s) in my code. I am writing a program to convert decimal to binary. It is not an application. It is more of a blue print for an object.
    The Program is:
    public class DecimalToBinary
         private long decimal;
         private long binary;
    //Constructor setes the variable decimal and coverts and sets the variable binary
    public DecimalToBinary(int decValue)
         decimal = (long)decValue;
         binary = convert(decValue);
    //This method does the actual conversion from decimal to binary
    public long convert(long dec)
              long remainder = 0; //Start with initial value
         String bin = ""; //Start with a blank string
              while (dec > 0)
              remainder = dec%2; //get remainder
                   dec /=2; //get the number divided by 2
                   bin = remainder + bin; //concatenate the remainder to string
         return Long.parseLong(bin);
         //Accesor methods to get the value of decimal
    public long getDecimal()
         return decimal;
    // Accessor Method to return binary Value
    public long getBinary()
         return binary;
    // To string to represent Object.
    public String toString()
         String result = "";
    result = decimal +"\t\t\t" +binary;
         name1.getDecimal()     
         return result;
    The error I am getting is:
    DecimalToBinary.java:56: ';' expected
         name1.getDecimal()     
         ^
    1 error
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    I've tried putting the ; in there but it doesn't help and only throws another error.

    Did you read the error message?
    DecimalToBinary.java:56: ';' expected
    name1.getDecimal() What is missing? Can you see where on the line of code it has identified that the missing thing is?

  • Time Capsule overheat message

    I have a 3rd generation 1TB Time Capsule fed by a high speed Cable Internet connection.
    Two Ethernet ports are used by an old LaserWriter 16-600PS, and a new Apple TV.
    The USB port houses a USB hub to which three hard drives (for a total of 5 partitions) are connected.
    This setting has been working flawlessly for nearly two years now.
    For the second time this month, an alert appeared on my screen telling me that my Time Capsule "might be experiencing an overheating issue", eventhough my connection was working perfectly normal.
    I went and checked (my TC is in another room) and found out that it was merely luke warm (as it always is), but that what seemed to be a noisy fan was on. The normally green  status light was blinking yellow.
    I disconnected its AC plug and reconnected it a minute later. Everything is now back to normal.
    The most recent TC software (7.6.1) is installed.
    Wonder if it is a real hardware problem, a bug in the software, or a false alarm triggered by external conditions or whatever.
    Is my Time Capsule hinting me that it is about to die ?
    Any thoughts ?
    YM

    Yves M wrote:
    Thanks for the infos, LaPastenaque !
    Might I add that I am sure that overheating is NOT the problem here : this morning, the same "Possible Overheating" alert appeared a mere 3 minutes after I plugged in my Time Capsule (I now unplug it at night), and it was litterally cold.
    Going to the Apple Store today, the buying dates for my Time Capsule and of my new iMac appear to entitle me for a replacement.
    YM
    Ok, 3min from start up, that is a board fault.. which is not a recoverable failure in the most part. If you can demonstrate the issue.. which might be your problem.. then definitely get Apple to replace it ASAP.
    There is one thing I would do if you are stuck with it.. and the Apple guy might try.. do a reset and flash the firmware back to a more reliable version.. eg 7.5.2 and then see if the same thing happens. A hardware fault it will keep doing it.. but firmware does get corrupted. In all the cases where I have seen hardware faults like yours a firmware change made no difference at all. I also suspect that the fault is similar to the first one I listed.. if it happens that near to start up. The log file can sometimes have an indication.. by connecting and disconnecting ethernet or something else like that.
    Apple will unfortunately replace like with like.. and not allow you to put the difference into an upgrade.. generally you will get a refurbished.. I would stick that straight on ebay without even unpacking it and buy yourself a Gen4. Refurbished are often not up to scratch for the TC. (And you will only get remainder of the existing applecare coverage AFAIK).

  • I cannot download my pictures anymore.  Any idea?

    I took some pictures yesterday and wanted to download them and a message "Failed to load plugins required to get media from devises"  What can I do to corrwect this?  That never happened to me before in all the years I have been using this program

    Hi,
    Which OS are you on? Was Adobe Photo Downloader working fine for you earlier?
    Thanks
    Andaleeb

  • My i phone was stolen

    and I had the I phone locator app. on and when i try to find it all i get is no devises found it won't even show the last no spot it was at. i figure I did something wrong on the set up. i hope it can be fixed and found I wanna throw him in  jail.

    if the device was restored to factory settings or if there was no lock set on and the thief just deleted the find my iphone app or if it was turned off you can't track it

  • Never has worked properly

    I bought my Ipod in May 2005 and it has never worked correctly. Either it would not recognize the USB port at all, or 90% of the time when it appeared to be charging correctly, it was actually uncharging the battery. Most of the time it wouldn't read the USB port. Also, the Ipod would only select a few songs to download half the time from ITunes. We figured our old computer and USB port did not meet the minimum qualifications for the Ipods needs.
    Now, we got a better computer, and now having the IPod plugged into the USB port, sometimes interfers with the the computers ability to start or run if the Ipod is plugged in. Again, I am getting the message that there is something wrong with the USB port, which was the same thing that happened on our old computer, except this computer is brand new, and there shouldn't be anything wrong.
    It has been a very expensive headache, and if anyone has input I would great appreciate it!!
    Ipod Mini (2nd Gen)   Windows XP  

    I think the computer we currently have is a Dell XPS400. Before on the last computer most of the time it didn't charge at all or if it appeared to be charging, when you went to use it the battery was completely dead. I think I was able to use my IPod for the first 8 months about 8 times when it actually worked properly.
    When we got the new computer, the IPod seemed to finally start working for the most part (90% of the time). Now, it isn't being recognized at ALL (for the past 2 weeks). The error message that I am constantly getting is "USB Devise not Recognized, One of the USB devises attached to this computer has malfunctioned, and windows does not recognize it." My personal opinion, the IPod I have is seriously defective and is messing up our computers! You got to love the return policy's on this overpriced gadgets too, which is you can't return them, just try and figure out the problem!
    Can anyone explain why we've had two different computers to this one Ipod and the Ipod seems to not be compatible to either one? If anyone has a once and for all solution, I would be ecstatic!

Maybe you are looking for

  • How do I transfer a file from an iPad to my Mac mini without using e-mail?

    I'm trying to salvage a QuickOffice Word document without having to retype it.

  • HP LaserJet 3 compatible Epson worked with OSX 10.4, but broke w/ 10.6

    Hi. I have a mac mini intel which used to run OSX 10.4. The printer is an Epson ActionLaser 1500 laserprinter (very old), which is running in a compatibility mode for the HP LaserJet 3. I was able to but a USB-to-parallel port adapter, and this print

  • FOC PO with excise duty

    Dear SAP Gurus, Requirement is to recieve a FOC material from the vendor and need to pay the applicable excise duty only , without paying the actual cost of the material . How to achieve this scenario. Thanks & Regards Nitin Chhabra

  • FBRA ISSUE

    Hi Guys, I`m currently facing a problem while running the T.code "FBRA" for reversal of a document. The document involves huge amount of corss company code transactions and i am getting a error : "system Lock:contact system admin". Please guide. Rega

  • Error in LabVNC connection

    LabVNC is running in my Server pc. When I am trying to connect from the web browser of client pc, an error message window is generates in the server. and the labVNC crashes. the error message is " LabVNC server for win32 has encountered a problem and