Large numbers! Need help

I have problem. I need to do a multiplication of to large numbers(about 150 digits). But I don't know which way I could do it. Could anyone help me?
Thanx for help.

I can conribute a quick and dirty string multiplication function just to play with:
- does not treat signs
- does not treat decimals
Just to show it can be done
All credits to the yesterday's bad weather - made me think about "old days" (;-o)
CREATE OR REPLACE
function multiply_them(x in varchar2,y in varchar2) return varchar2 is
  retval varchar2(2001) := '0';
  i pls_integer;
  j pls_integer;
  half varchar2(1000);
  dble varchar2(2001);
  z varchar2(1000);
  w varchar2(1000);
function number_is_it(x in varchar2) return boolean is
begin
  if (x = '') or (x is null) then
    return FALSE;
  end if;
  return (replace(translate(x,'0123456789',rpad(chr(9),10,chr(9))),chr(9),'') is null);
end;
function odd_is_it(x in varchar2) return boolean is
begin
  return (mod(to_number(substr(x,-1,1)),2) = 1);
end;
function add_them(x in varchar2,y in varchar2) return varchar2 is
  retval varchar2(1001) := '';
  z varchar2(1000);
  w varchar2(1000);
  i pls_integer;
  j pls_integer;
  carry pls_integer := 0;
begin
  if x is null or y is null then
    return null;
  end if;
  if x = '0' then
    return y;
  end if;
  if y = '0' then
    return x;
  end if;
  i := length(x);  -- TO CALL FUNCTION ONLY ONCE
  j := length(y);
-- FOR NOW WE JUST LEFT PAD THE SHORTER STRING WITH ZEROS TO MAKE THEIR LENGTHS EQUAL
-- IN CASE OF BIG LENGTH DIFFERENCE TO DO:
-- WHEN THE SHORTER STRING IS EXHAUSTED CONCATENATE THE HEAD OF THE LONGER STRING TO PARTIAL SUM OBTAINED
  if i > j then
    z := x;
    w := lpad(y,i,'0');  
  elsif i < j then
    z := lpad(x,j,'0');
    w := y;
    i := j;
  else
    z := x;
    w := y;
  end if;
  while i >= 0 loop
    if i > 0 then
      j := to_number(substr(z,i,1)) + to_number(substr(w,i,1)) + carry;
      carry := trunc(j/10,0);
      retval := to_char(j - 10 * carry) || retval;
    end if;
    i := i - 1;
  end loop;
  return to_char(carry) || retval;
end;
function double_it(x in varchar2) return varchar2 is
  retval varchar2(1001);
begin
  retval := add_them(x,x);
  return ltrim(retval,'0');
end;
function halve_it(x in varchar2) return varchar2 is
  retval varchar2(1000) := '';
  i pls_integer := 1;
  j pls_integer := length(x);
  k number;
  carry pls_integer := 0;
begin
  if x is null then
    return null;
  end if;
  if x = '1' then
    return '0';
  end if;
  if substr(x,1,1) = '1' then
    carry := 10;
    i := 2;
  end if;
  while j >= i loop  
    k := (to_number(substr(x,i,1)) + carry) / 2;
    if k = trunc(k,0) then
      carry := 0;
    else
      carry := 10;
    end if;
    retval := retval || to_char(trunc(k,0));
    i := i + 1;
  end loop;
  return retval;
end;
begin
-- WE WILL DO "PEASANT MULTIPLICATION" (MORE EFFICIENT THAN CONVENTIONAL MULTIPLICATION):
-- WHEN THE FACTOR TO BE HALVED IS ODD WE ADD THE CORRESPONDING DOUBLE TO THE RESULT (INITIALLY ZERO)
-- AT EACH STEP WE HALVE ONE FACTOR AND DOUBLE THE OTHER
-- STEPS ARE REPEATED UNTIL THE HALVED FACTOR IS GREATER THAN ZERO
  if x is null or y is null then
    return null;
  end if;
  if number_is_it(x) and number_is_it(y) then  -- THEY ARE BOTH NUMBERS
-- CHECK FOR TRIVIAL RESULTS: MULTIPLICATION BY ZERO AND MULTIPLICATION BY ONE
    z := ltrim(x,'0');  -- TRIM LEADING ZEROS (JUST IN CASE)
    if z = '' then
      return '0';  -- SINCE ALL ZEROS WERE TRIMMED OFF X IS ZERO
    end if;
    w := ltrim(y,'0');  -- TRIM LEADING ZEROS (JUST IN CASE)
    if w = '' then
      return '0';  -- SINCE ALL ZEROS WERE TRIMMED OFF Y IS ZERO
    end if;
    if z = '1' then
      return w;
    end if;
    if w = '1' then
      return z;
    end if;
    i := length(z);  -- TO CALL FUNCTION ONLY ONCE
    j := length(w);
-- WILL DO IT IN LESS STEPS IF THE LESSER FACTOR GETS HALVED AND THE GREATER FACTOR GETS DOUBLED
    if i > j then  -- X > Y => Y WILL BE HALVED AND X WILL BE DOUBLED
      half := w;
      dble := z; 
    elsif i < j then  -- X < Y => X WILL BE HALVED AND Y WILL BE DOUBLED
      half := z;
      dble := w;
    else  -- X AND Y ARE EQUAL LENGTH STRINGS SO WE COMPARE THE FIRST CHARACTERS
      if substr(z,1,1) <= substr(w,1,1) then  -- X < Y => X WILL BE HALVED AND Y WILL BE DOUBLED
        half := z;
        dble := w;
      else  -- X > Y => Y WILL BE HALVED AND X WILL BE DOUBLED
        half := w;
        dble := z;
      end if; 
    end if;
-- PEASANT MULTIPLICATION
    while half > '0' loop
      if odd_is_it(half) then
        retval := add_them(retval,dble);
      end if;
      half := halve_it(half);
      dble := double_it(dble);
    end loop;
    retval := ltrim(retval,'0');
  else
    retval := 'at least one of the two operands is not a number';
  end if;
  return retval;
end;Regards
Etbin

Similar Messages

  • How to restore Data from past iCloud backup? I lost my spreadsheets from Numbers, need help.

    How to restore Data from past iCloud backup?
    Is there a way where i can retrieve my spreadsheets from the past iCloud backup of numbers?

    Your Numbers documents were synced with iCloud so they would be stored on the server rather than being included in the backup.  If you were signed into your iCloud account on a Mac that you were backing up with Time Machine, you could restore them from your Time Machine backup.

  • How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
    iWork > Pages
    contenant Templates > My Templates
    comme il y a un dossier
    iWork > Numbers
    contenant Templates > My Templates
    Depuis le Finder, tapez cmd + f
    puis configurez la recherche comme sur cette recopie d'écran.
    puis lancez la recherche.
    Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
    Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
    Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
    Désolé mais je ne répondrai plus avant demain.
    Pour moi il est temps de dormir.
    Yvan KOENIG (VALLAURIS, France)  mercredi 23 janvier 2011 22:39:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • I need help highlighting an expiration date on my Numbers '09 spreadsheet. I want the text/fill of a cell to change color when the expiration date of an item is within 180 days of the current date.

    I need help highlighting cells on my Numbers '09 spreadsheet.  I want the cell text/fill to change color when the date is 180 days or less from the current date.  I already have a cell with the current date in it.  I also know how to change the fill/text colors.  All the cells have been formatted to show date only.  I am having trouble with the formula.  I can get to the Conditional Formatting menu and select "With Dates" but after that I am lost.  Can anyone help?
    Thank you for any assistance.
    B

    Set a Conditional Format rule as shown in the illustration below. The rule has been applied to all dates in column B of the table.
    Regards,
    Barry

  • Need help in converting numbers to Italian text

    Need help in converting numbers to text in Italian language. I want to knw is there any method other than SE63 to translate these text in one shot. I have tried with LSMW also (as the sheet is in XLS format ).Plz reply if anyone is aware of this ..

    hi,
    chk this code.
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
    amount = amount
    currency = 'EUR'
    filler = ' '
    language = 'E'  => give the language as italian
    IMPORTING
    in_words = amountrs.
    rgds
    anver
    pls mark all hlpful answers

  • I need help syncing my contacts between Outlook and iPhone using iTunes. I followed the steps given and ended up with just email addresses showing in my contacts even though I have phone numbers and snail mail in my Outlook Contacts. Using  Windows 7

    I need help syncing my contacts between Outlook and iPhone using iTunes. I used the knowldge document and set it up to transfer my Outlook contacts to the iphone using itunes.
    In contacts on the iphone I only see the email addresses.
    Yet in Outlook I have email, snail mail and phone numbers.
    I followed the knowledge document from iphone.
    I did it once, didn't work so deleted all the contacts from the phone and tried again. Same result. I have a PC using Windows 7 64 bit.

    You can't access an Exchange account via ActiveSync with the Address Book and iCal on your Mac.
    You can access a MM account with Outlook on your PC at work and keep your MM email account server stored mailboxes synced between your PC at work, your iPhone, and the MM "cloud". Not sure about syncing MM contact info and calendar events with Outlook at the same time with an Exchange account.
    This will not provide for syncing your Exchange account contact info and calendar events with the Addresss Book and iCal on your Mac because the accounts are separate.
    You can access an Exchange account and a MM account at the same time with the iPhone's mail client, and sync contact info and calendar events over the air with both accounts at the same time. You can view combined contact info or separately for each account, and the same for calendar events.

  • Need help verifying positive numbers

    I have a payroll program I've been working on for class the last few weeks. The most recent modification is that I need to confirm the hours and pay scale are entered in positive numbers. I've tried a while and an if...else statement and am getting an error telling me that I have an "illegal start" to the expression, and that the way I've written the statement is incompatible with boolean. Here is the code - I've colored the if...else statements red. The else statements don't give me an error, but the if statements do. (BTW, I've had the same problem trying to use a while statement.)
    I'm pretty sure it has something to do with how I've written the if statement, but I can't put my finger on it. Can someone help?
    Thanks,
    import java.util.Scanner; // program uses Scanner
    public class WeeklyPayrollTest
          public static void main(String args[])
            // create scanner to obtain input from command window
            Scanner input = new Scanner( System.in );
            // declare variables
            String exitPayroll;
            exitPayroll = "N";
            double numberHours = 0;
            double payRate = 0;
            // create a WeeklyPayroll object and assign it to currentPayroll
            WeeklyPayroll currentPayroll = new WeeklyPayroll();
            PayScale thisPay = new PayScale();
            while( exitPayroll.equalsIgnoreCase( "N" ) ) // begin while loop
                  // prompt for and input employee name
                  System.out.println( "Please enter employee name: " );
                  String nameOfEmployee = input.next(); // read user input
                  // prompt for and input hours worked
                  System.out.println( "Enter hours worked: ");
    {color:#ff0000}              if( input.nextDouble( <= 0 ) ) // compare input for positive numbers
                      System.out.println( "Only positive numbers are allowed. " +
                              "Please enter a correct number." ); // alert user positive numbers needed
                  numberHours = input.nextDouble(); // prompt for hours
                  else{
                  // prompt for and input hourly pay amount
                  System.out.println( "Enter hourly rate: ");
                  if(input.nextDouble( <= 0)) // compare input for positive numbers
                      System.out.println( "Only positive numbers are allowed. " +
                              "Please enter a correct number.") // alert user positive numbers are needed
                  payRate = input.nextDouble(); // prompt for rate of pay
                  else{
                  // call PayScale
                  double weeklyPay = thisPay.payScale( payRate, numberHours );
                  // call currentPayroll's displayMesage method and
                  // pass nameOfEmployee as an argument
                  currentPayroll.displayMessage( nameOfEmployee, weeklyPay );
    {color}             
                  System.out.println( "Would you like to exit this program? " +
                          "Enter Y for yes and N for no." );
                  exitPayroll = input.next(); // read user input
               } // end while loop
          System.out.println( "Thank you for using this payroll program." );        
        } // end main
    } // end class WeeklyPayrollTest

    if( input.nextDouble( )  <= 0) // compare input for positive numbers
                      System.out.println( "Only positive numbers are allowed. " +
                              "Please enter a correct number." ); // alert user positive numbers needed
                      numberHours = input.nextDouble(); // prompt for hours
    }This will through away the result. Try this
    numberHours = input.nextDouble;
    while ( input.nextDouble( )  <= 0) // compare input for positive numbers
                      System.out.println( "Only positive numbers are allowed. " +
                              "Please enter a correct number." ); // alert user positive numbers needed
                      numberHours = input.nextDouble(); // prompt for hours
    }

  • MY phone is using large amounts of data, when i then go to system services, it s my mapping services thats causing it. what are mapping services and how do i swithch them off. i really need help.

    MY phone is using large amounts of data, when i then go to system services, it s my mapping services thats causing it. what are mapping services and how do i swithch them off. i really need help.

    I Have the same problem, I switched off location services, maps in data, whatever else maps could be involved in nd then just last nite it chewed 100mb... I'm also on vodacom so I'm seeing a pattern here somehow. Siri was switched on however so I switched it off now nd will see what happens. but I'm gonna go into both apple and vodacom this afternoon because this must be sorted out its a serious issue we have on our hands and some uproar needs to be made against those responsible!

  • I have a large numbers spreadsheet and I need to delete a lot of blank rows. Can I do this in one lump sum, or do they have to be deleted singularly ?

    I have a large numbers spreadsheet that I inherited and I need to delete a lot of rows. Can this be accomplished collectively, or does each row have to be deleted one by one ?

    You can delete multiple rows at once.
    Hold down the command key and select the rows (which do not have to be contiguous) by clicking the row numbers on the left, then do this:
    SG

  • Need help with a activation code for Adobe Acrobat X Standard for my PC,, Don't have older version serial numbers,  threw programs away,  only have Adobe Acrobat X Standard,  need a code to unlock program?

    Need help with a activation code for Adobe Acrobat X Standard for my PC, Don't have older Version of Adobe Acrobat 9, 8 or 7. 

    You don't need to install the older version, you only need the serial number from your original purchase. If you don't have them to hand, did you register? If so, they should be in your Adobe account. If not you really need to contact Adobe, though it isn't clear they will be able to do anything without some proof of purchase etc.

  • Need help with iphoto and dragging to external hard drive

    Hello,
    I have my iphoto very organized into Events and I recently just moved them to be in folders.  I would like to have only certain Events (or folders/albums) on the external hard drive.  The apple store rep said to go to Finder, Pictures, Iphoto, then right click to "Show Package Contents."  Then go to either "original" or "modified." From there I can drag into the hard drive.  However, I'm very confused because the "modified" or "original" are not organized at all by folders or events.  There are dates only.  What can I do to find, drag the events (each are named)?  Please help!
    Katie

    1. Ignore the Apple store rep.
    2. You need to clarify:
    I have my iphoto very organized into Events and I recently just moved them to be in folders
    Moved them to be where in folder? In iPhoto? In the FInder?
    I would like to have only certain Events (or folders/albums) on the external hard drive.
    In an iPhoto Library? Or in the Finder?
    Do not access the Library via the Finder or any other app. You risk damaging your Library and you will lose data.
    If you want to have some Events/Albums on an External Disk within iPhoto:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    Now you have two full versions of the Library.
    3. On the Internal library, trash the Events you don't want there
    Now you have a full copy of the Library on the External and a smaller subset on the Internal
    Some Notes:
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    You can choose which Library to open: Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    You can keep the Library on the external updated with new imports using iPhoto Library Manager
    If you want to have them in Folders in the Finder
    Use the FIle > Export command to get photos out of iPhoto.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • Business Partner records with large numbers of addresses -- Move-in issue

    Friends,
    Our recent CCS implementation (ECC6.0ehp3 & CRM2007) included the creation of some Business Partner records with large numbers of addresses.  Most of these are associated with housing authorities, large developers and large apartment complex owners.  Some of the Business Partners have over 1000 address records and one particular BP has over 6000 addresses that were migrated from our Legacy System.  We are experiencing very long run times to try to execute move in's and move out's due to the system reading the volume of addresses attached to the Business Partner.  In many cases, the system simply times out before it can execute the transaction.  SAP's suggestion is that we run a BAPI to cleanse the addresses and also to implement a BADI to prevent the creation of excess addresses. 
    Two questions surrounding the implementation of this code.  Will the BAPI to cleanse the addresses, wipe out all address records except for the standard address?  That presents an issue to ensure that the standard address on the BP record is the correct address that we will have identified as the proper mailing address.  Second question is around the BADI to prevent the creation of excess addresses.  It looks like this BADI is going to prevent the move in address from updating the standard address on the BP record which in the vast majority of cases is exactly what we would want. 
    Does anyone have any experience with this situation of excess BP addresses and how did you handle the manipulation and cleansing of the data and how do you maintain it going forward?
    Our solution is ECC6.0Ehp3 with CRM2007...latest patch level
    Specifically, SAP suggested we apply/review these notes:
    Note 1249787 - Performance problem during move-in with huge addresses
    **applied this ....did not help
    Note 861528 - Performance in move-in for partner w/ large no of addresses
    **older ISU4.7 note
    Directly from our SAP message:
    use the function module
    BAPI_BUPA_ADDRESS_REMOVE or run BAPI_ISUPARTNER_CHANGE to delete
    unnecessary business partner addresses.
    Use BAdI ISU_MOVEIN_CUSTOMIZE to avoid the creation of unnecessary
    business partner addresses (cf. note 706686) in the future for that
    business partner.
    Note 706686 - Move-in: Avoid unnecessary business partner addresses
    Does anyone have any suggestions and have you used above notes/FMs to resolve something like this?
    Thanks,
    Nick

    Nick:
    One thing to understand is that the badi and bapi are just the tools or mechanisms that will enable you to fix this situation.  You or your development team will need to define the rules under which these tools are used.  Lets take them one at a time.
    BAPI - the bapi for business partner address maintenance.  It would seem that you need to create a program which first read the partners and the addresses assigned to them and then compares these addresses to each other to find duplicate addresses.  These duplicates then can be removed provided they are not used elsewhere in the system (i.e. contract account).
    BADI - the badi for business partner address maintenance.  Here you would need to identify the particular scenarios where addresses should not be copied.  I would expect that most move-ins would meet the criteria of adding the address and changing the standard address.  But for some, i.e. landlords or housing complexes, you might not add an address because it already exists for the business partner, and you might not change the standard address because those accounts do not fall under that scenario.  This will take some thinking and design to ensure that the address add/change functions are executed under the right circumstances.
    regards,
    bill.

  • Very Large Numbers Question

    I am a student with a question about how Java handles very large numbers. Regarding this from our teacher: "...the program produces values that
    are larger than Java can represent and the obvious way to test their size does not
    work. That means that a test that uses >= rather than < won?t work properly, and you
    will have to devise something else..." I am wondering about the semantics of that statement.
    Does Java "know" the number in order to use it in other types of mathematical expressions, or does Java "see" the value only as gibberish?
    I am waiting on a response from the teacher on whether we are allowed to use BigInteger and the like, BTW. As the given program stands, double is used. Thanks for any help understanding this issue!

    You're gonna love this one...
    package forums;
    class IntegerOverflowTesterator
      public static void main(String[] args) {
        int i = Integer.MAX_VALUE -1;
        while (i>0) {
          System.out.println("DEBUG: i="+i);
          i++;
    }You also need to handle the negative case... and that get's nasty real fast... A positive plus/times a positive may overflow, but so might a negative plus a negative.
    This is decent summary of the underlying problem http://mindprod.com/jgloss/gotchas.html#OVERFLOW.
    The POSIX specification also worth reading regarding floating point arithmetic standards... Start here http://en.wikipedia.org/wiki/POSIX I guess... and I suppose the JLS might be worth a look to http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html

  • Error adding large numbers

    I am adding large numbers and getting the wrong result. there seems to be some rounding taking place in the sum but i am adding integers. I am using DASYLab 9.02, data is summed in the arithmetic module, example problem 331153408-31570 = 331121838 but the output is 331121824. I tried making the variable where the inputs are stored 20 digit with 10 decimals but that did not help and i also tried dividing first by 1000 and 10000 only to get different answers. is there a setting that needs to be configured differently?

    Hi Tom, Thanks for the reply. I am reading a hex value in from a serial port. the number is large and when i format it as hex on one chan it is off by a small amount. there is some rounding in the LSD. i then take another reading later and calculate the delta. since i dont have the right values to begin with my difference calculation is wrong. when i read as bytes through 8 channels, i can see the ascii for each digit and that they are correctly displayed. using a formula module i can convert from ascii to decimal so that i get the decimal equivalent of the hex character then in the next formula i do the math to find the value of each hex digit in place it holds. then using a sum arithmetic module i get the final value of the large number coming in. it is correct all the way upto the aritmetic sum. i tried cutting the large hex number into two parts and then adding up the weighted parts and still have the wrong ans in the display module. i also tried dividing the halves by 1000 prior to adding them so that i was working with smaller numbers in the summation but that didnt help.
    so i did the math directly in the extended portion of the variables. the numbers add up properly there but when i try to bring the correct sum back into the work sheet to display it, it is wrong again. it seems that a value around 04000000 hex is the limit. below that i get the right value displayed that was calculated in the variable field, above it there is some degree of variation. I can set the limit of cycles to a value below where the addition becomes problematic or i can export the hex to a spreadsheet, do the math there and then bring it back in but i will still have the same issue displaying the answer.
    the limitation doesnt seem to be in DASYLab in general but in the Read, Formula, Constant Generator modules that read the variable back into the worksheet. it is displayed properly in the contents window

  • Fixing my friends ipod   but need help with  crashing freezing etc probs

    my friend as us to fix his ipod two weeks ago as it had a sad face and was making grinding noises.
    well we fix it but it is now very slow, and he says its freezing. this was after the fourth or fifth format restore as a normal itunes restore doesent work.
    so afteer formating it on abuntu cus we descovered 2 partitions
    it now works ... then we sync it with itunes 7.5 it crashed tried 8.0 it crashed even tried 9.25 and 10.1.
    it crashed and locked the computer.
    the drive is griding like mad , its slow and it wont always show up.
    we think it a classic 5 g , it has a 30 gig hard drive, (post s/n later as im writing this in bed)
    we got it up and running and then itunes 7.5 crashed. now it gone back to a small circle with a line which is black.
    it looks like the wrong firmware keeps booting as it is suposed to be a red circle with line which is twice the size.
    i know it had firmware 3.1 on it before and it eventually finds it. and works but
    can someone tell me
    1 where do i find the correct version of the firm ware as i think the current 1 is scrambled.
    as for the hard drive it is getting hot and griding do u think i need replace it.
    think s/n or model number is m????k something.
    were runing out of ideas
    can u help
    btw my first post.

    *Check your iPod with Diagnostics Mode*
    It's possible that the iPod's hard drive is failing. Take the iPod and place your right thumb on the centre SELECT button and your left on the top MENU button. Press down both thumbs for about 6 seconds until your iPod reboots. Immediately move your left thumb around to the rewind button |<< on the left and hold this down together with SELECT for a further 6 seconds. The iPod should now switch into Diagnostic Boot mode. Press MENU for *Manual Test*, then select *IO > HardDrive > HDSMARTData* to reveal your stats. For comparison here are mine for my 2 year old 6th Generation Classic:
    Retracts: 889
    Reallocs: 12
    Pending Sectors: 0
    PowerOn Hours: 2202
    Start/Stops: 894
    Temp: Current 24c
    Temp: Min 10c
    Temp: Max 50c
    Take a note of your results. When finished press *SELECT & MENU* for 6 seconds to reset the iPod again.
    With modern disc drives sectors are no longer marked bad by a disc scan, if the SMART firmware detects a sector it has trouble accessing it will attempt to invisibly reallocate it to a spare area of the disc.
    Note that I've only 12 remapped sectors and none pending. To help explain what the numbers mean here is an extract from the Wikipedia S.M.A.R.T. article:
    *Reallocated Sectors Count*
    Count of reallocated sectors. When the hard drive finds a read/write/verification error, it marks this sector as "reallocated" and transfers data to a special reserved area (spare area). This process is also known as remapping, and "reallocated" sectors are called remaps. This is why, on modern hard disks, "bad blocks" cannot be found while testing the surface – all bad blocks are hidden in reallocated sectors. However, as the number of reallocated sectors increases, the read/write speed tends to decrease. The raw value normally represents a count of the number of bad sectors that have been found and remapped. Thus, the higher the attribute value, the more sectors the drive has had to reallocate.
    *Pending sector count*
    Number of "unstable" sectors (waiting to be remapped, because of read errors). If an unstable sector is subsequently written or read successfully, this value is decreased and the sector is not remapped. Read errors on a sector will not remap the sector (since it might be readable later); instead, the drive firmware remembers that the sector needs to be remapped, and remaps it the next time it's written.
    Large numbers of Reallocs or Pending Sectors would suggest the drive is failing and that you may need to repair or replace the iPod. Check the stats after another attempt to update the iPod. If the numbers increase that again points to hard drive failure. While it won't be good news at least you'll know it isn't some random software problem and you can decide what to do next, e.g. replace the hard drive or the entire unit.
    tt2

Maybe you are looking for

  • Mid-2011 Macbook Air with very slow wifi yet with OSX 10.9.1

    Yes, I am opening yet another topic on this pretty old issue because I am too confused with all that I have read so far (as also have not found a recent case similar to mine). I have a mid-2011 Macbook Air i5 13'. My home wireless network works just

  • Error message for ORA-904 incomplete in german locale [1.1.0.22.71]

    Hello Forum, when I enter an SQL which generates an ORA-904, the error message looks somewhat weird with german locale: -- First with AMERICAN setting: alter session set nls_language='AMERICAN'; select a from dual; alter session set succeeded. Error

  • Notification quantity fields

    Hi, Please clarify me on the actual purposes of quantity fields in notification like Complaint quantity, Refernce quantity, Defect quantity internal, Defect quantity external and Return Delivery quantity. Please throw some light with actual use of th

  • Low bandwidth alert

    We get hit with indirect link failures that we have to rely on Cacti to show. Sadly, it can take our NOC guys hours to detect. I'm thinking a TCL script that watches ifHCInOctets (.1.3.6.1.2.1.31.1.1.1.6) and ifHCOutOctets (1.3.6.1.2.1.31.1.1.1.10) a

  • TimeStamp milisecond​s control in Labview

    the question is about the miliseconds part of timestamp. It seems there is no way to control(write) directly the miliseconds part, also when read there is no ms part in the indicator. What is the structure of the time stamp record?Are there some way