This did not work...
Type: Posts; User: Charlie Lesoine
This did not work...
I just did a google search for "equality comparison with float" And found a page that provided a solution to this issue. instead of using an equality comparison something like this instead:
if...
Well the array that I am using to count the frequency (mode_counter) is an integer array. The other numbers are floats because I have to calculate other things with them, but I am not sure why that...
I am just trying to find the standard mathematical mode. The number or numbers which appear most frequently
For example:
1,1,1,2,2,3,9,4,6
The mode is 1
or
1,1,1,2,2,2,3,8,6,5,0
As part of finding the mode of an array of float numbers, the first step is to count the number of occurrences of each number in the array. I am trying to do this starting on line 166, but something...