File: README.md

package info (click to toggle)
kf6-kunitconversion 6.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 23,676 kB
  • sloc: cpp: 7,660; xml: 54; sh: 14; makefile: 8; ansic: 5
file content (46 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# KUnitConversion

Converting physical units

## 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
* Weight per area

## Usage

To convert 100 GBP into EUR, you can write:

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