Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/conversions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19473/systems/conversions Modified Files: convert_celsius_to_kelvin.hpp convert_fahrenheit_to_kelvin.hpp convert_kelvin_to_celsius.hpp convert_kelvin_to_fahrenheit.hpp Log Message: fix erroneous scale factor for kelvins 273.16->273.15 Index: convert_fahrenheit_to_kelvin.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/conversions/convert_fahrenheit_to_kelvin.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- convert_fahrenheit_to_kelvin.hpp 2 Apr 2007 21:24:44 -0000 1.1 +++ convert_fahrenheit_to_kelvin.hpp 3 Apr 2007 21:38:26 -0000 1.2 @@ -51,7 +51,7 @@ { const typename from_quantity_type::value_type& in(source.value()); - return to_quantity_type::from_value((in.value()-32.0)*(5.0/9.0) + 273.16); + return to_quantity_type::from_value((in.value()-32.0)*(5.0/9.0) + 273.15); } }; Index: convert_celsius_to_kelvin.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/conversions/convert_celsius_to_kelvin.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- convert_celsius_to_kelvin.hpp 2 Apr 2007 21:24:44 -0000 1.1 +++ convert_celsius_to_kelvin.hpp 3 Apr 2007 21:38:26 -0000 1.2 @@ -49,7 +49,7 @@ { const typename from_quantity_type::value_type& in(source.value()); - return to_quantity_type::from_value(in.value() + 273.16); + return to_quantity_type::from_value(in.value() + 273.15); } }; Index: convert_kelvin_to_fahrenheit.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/conversions/convert_kelvin_to_fahrenheit.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- convert_kelvin_to_fahrenheit.hpp 2 Apr 2007 21:24:44 -0000 1.1 +++ convert_kelvin_to_fahrenheit.hpp 3 Apr 2007 21:38:26 -0000 1.2 @@ -40,7 +40,7 @@ { const typename from_quantity_type::value_type& in(source.value()); - return to_quantity_type::from_value((in.value()-273.16)*(9.0/5.0) + 32.0); + return to_quantity_type::from_value((in.value()-273.15)*(9.0/5.0) + 32.0); } }; Index: convert_kelvin_to_celsius.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/conversions/convert_kelvin_to_celsius.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- convert_kelvin_to_celsius.hpp 2 Apr 2007 21:24:44 -0000 1.1 +++ convert_kelvin_to_celsius.hpp 3 Apr 2007 21:38:26 -0000 1.2 @@ -40,7 +40,7 @@ { const typename from_quantity_type::value_type& in(source.value()); - return to_quantity_type::from_value(in.value() - 273.16); + return to_quantity_type::from_value(in.value() - 273.15); } }; |