It was pretty funny making it. It worked fine for something easy liked 4:3 640x480, but it choked on the 640x448 listed here.
Problem was I was converting them to integers to soon.
All calculations are done with double precision floats(decimals, whatever), then converted to integer on display ^_^ Ahh yes, that fixed the problem.
I was thinking of doing something like "oh it's 4:3", but I would have to have a list of standard aspects'. The best way I could think of doing this is making a conversion list. So that if the aspect = 1.333333, it looks in the list, compares, if it finds a matching entry like "1.333333 = 4:3" then it would print out "4:3" instead of "1.333333".
I don't think there is any actual algorithm you could create that would produce the type of aspects we would like to see. Such as 4:3, could also be shown:
1.333333:1
2.666666:2
4:3
5.333333:4
6.666666:5
Which one does the program choose ? How would it know which one is correct, well they're all correct, just which one is everyone used to seeing? The program wouldn't know unless you told it :\ I guess you could also tell it to choose the first ratio were both numbers are not decimals
^_^ WHoa! That may just work ^_^
~klinky