How can I make a floating point comparison function for use with qsort?
Q: How I can define a comparison function for sorting an array of floats using qsort function: A: Here is a simple example (called “Sort Floats”): // Sort a list of floating point values #define USE_TI89 // Compile for TI-89 #define USE_TI92PLUS // Compile for TI-92 Plus #define USE_V200 // Compile for V200 #define MIN_AMS 100 // Compile for AMS 1.00 or higher #define SAVE_SCREEN // Save/Restore LCD Contents #include