I was trying to figure out the problem I've had with converting temperatures and came across what might be an issue. Seems too 'obvious' so I might be totally off but:
While looking at Measure/Abstract.php I realized that in the setType() function when converting to expected type FROM standard type, as oppose to going through the operations in reverse, it does it in the same order as converting TO standard type (although correctly, it does the opposite operation). Correct me if I'm wrong but isn't this incorrect math? For example: When converting from Celsius to Fahrenheit, this function correctly gets the standard measurement (Kelvin) but then to go from Kelvin to Fahrenheit it traverses the Fahrenheit conversion array ($this->_UNITS[FAHRENHEIT][0]) in this order: subtract 459.67 multiply by 1.8 This is incorrect. Should be: FIRST multiply by 1.8 THEN subtract 459.67 I previously asked about this function but incorrectly assumed that it was the numbers in the calculations not the order of operations. Let me know if I'm off (which would be sad being that I am a Math minor). --Belmin
