I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
COST (GBP)
this unit 0.76
sub units 0.00
+
0
UnitsConvert

power

Measurement units, including imperial and SI units
Controller: will

Interface

C++

Power

 
doublepowerdoublenumber
unitsfrom_unit
unitsto_unit )
Converts numbers from one power unit to another.

Example 1

#include <iostream>
#include <codecogs/units/convert/power.h>
 
using namespace Units::Convert;
int main()
{
  std::cout << "power(10.2,unit_BTU_min, unit_W)=" << power(10.2,unit_BTU_min, unit_W);
 
  return 0;
}
Output:
power(10.2,unit_BTU_min, unit_W)= 179.19997609543

Parameters

numberthe value in from_unit 's to convert
from_unitan enumerated value of the initial power type
to_unitan emuerated value of the output power type

Returns

the value in the converted unit.
Source Code

Source code is available when you buy a Commercial licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.


Other Documentation

The standard measurement units are:
Unit names Alternate names / spellings Abbreviation Enumeration Code Conversion Rate (relative to first unit)
Power
Watts Watts W unit_W 1
British Thermal Unit/hour BTU/hour BTU/hr unit_BTU-hr 3.415179027
British Thermal Unit/minute BTU/minute BTU/min unit_BTU-min 0.05691965
British Thermal Unit/second BTU/second BTU/sec unit_BTU-sec 0.000948661
Calories/second Calorie/second cal/sec unit_cal-sec 0.239058511
Horsepower Horse power hp unit_hp 0.001341022
Pound-feet/minute Pound-foot/minute lb.ft/min unit_lb_ft-min 44.25372896
Pound-feet/second Pound-foot/second lb ft/sec unit_lb_ft-sec 0.737562149
Source Code

Source code is available when you buy a Commercial licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.