The translation maths are from "onlineconversions.com"...
I could hardly believe that they would not see this sort of failure in their data because they are there since several years and were one of the first.

Maths:
1 Celsius equals 274,15 Kelvin
1 Fahrenheit equals (-32/1.8) + 273,15 Kelvin
I see no failure here.
And the standard unit has no  included...

Sorry, but I dont see any problem on the mentioned lines.

To say it once more for all...
We can not expect what you mean...
We are no clairvoyants...

PLEASE PROVIDE ENOUGH DATA FOR REPRODUCTION !!!!

Greetings
Thomas
I18N Team Leader

----- Original Message ----- From: "Belmin Fernandez" <[EMAIL PROTECTED]>
To: <fw-general@lists.zend.com>
Sent: Wednesday, July 11, 2007 2:41 PM
Subject: [fw-general] Temperature conversions


I was trying out the temperature conversions and I realized I was
getting the wrong values. I looked at Zend/Measure/Temperature.php and
it seems the math is incorrect. Currently:

       'CELSIUS'    => array(array('' => 1, '+' => 274.15),'°C'),
       'FAHRENHEIT' => array(array('' => 1, '-' => 32, '/' => 1.8,
'+' => 273.15),'°F'),

Should be:

       'CELSIUS'    => array(array('' => 1, '+' => 273.15),'°C'),
       'FAHRENHEIT' => array(array('' => 1, '+' => 459.67, '/' => 9,
'*' => 5 ),'°F'),

I am incorrect about this? I'm assuming I'm missing something or
atleast doubt I'm the first person to catch it.

--Belmin

Reply via email to