The KDE Community

KUnitConversion

Converting physical units.

KUnitConversion Introduction

KUnitConversion provides functions to convert values in different physical units. It supports converting different prefixes (e.g. kilo, mega, giga) as well as converting between different unit systems (e.g. liters, gallons). The following areas are supported:

  • Acceleration
  • Angle
  • Area
  • Binary Data
  • Currency
  • Density
  • Electrical Current
  • Electrical Resistance
  • Energy
  • Force
  • Frequency
  • Fuel efficiency
  • Length
  • Mass
  • Permeability
  • Power
  • Pressure
  • Temperature
  • Thermal Conductivity
  • Thermal Flux
  • Thermal Generation
  • Time
  • Velocity
  • Volume
  • Voltage

KUnitConversion Usage

To convert 100 GBP into EUR, you can write:

using namespace KUnitConversion;
Value pounds(100, Gbp);
Value eur = pounds.convertTo(Eur);

By clicking button above, I agree Marketplace user terms and conditions

Reviews
Details
Version:
5.62.0
Publisher:
The KDE Community
Contact:
kde-devel@kde.org
Copyright:
The KDE Community
Authors:
KDE Community
From:
https://api.kde.org/frameworks/index.html
License:
LGPL v2.1+
Created at:
2013-10-11
Updated at:
2019-09-14
Platforms:
Linux
Qt versions:
5.0 or newer
Support:
kde-devel@kde.org
Packages:
http://download.kde.org/stable/frameworks/5.62/kunitconversion-5.62.0.tar.xz
Source repository:
https://projects.kde.org/projects/frameworks/kunitconversion/repository