Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004

    Unanswered: Sorting an Array of numbers


    I have a procedure that creates a 1 dimension array of random numbers that I need to sort into ascending order. The array could be as short as 10 numbers or could be 10,000, so speed may be an isssue, but for the moment actually working is my main concern.

    I used a function by J Walkenbach that sorts them into order, but the array returned rounds the numbers to integers.

    Does anyone have a function that does not convert the numbers.


  2. #2
    Join Date
    Sep 2008
    London, UK
    Hi Mike,

    The procedure, which I expect is a bubble sort, probably uses Long data types. To preserve decimal places use Double data types.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts