subsurface/tests
Berthold Stoeger 0e9eee0a7f core: return floating point from to_PSI() functions
Dive data are stored internally using integral types using
appropriately fine units (mm, mbar, mkelvin, etc.). These
are converted with functions defined in units.h for display
(m, bar, C, etc.). Usually floating points are returned by
these functions, to retain the necessary precision. There
is one exception: the to_PSI() and mbar_to_PSI() functions.

For consistency, make these functions likewise return floats.
This will be needed for the rework of the profile-axes.
The plan is to use the conversion functions to make the
axes aware of the displayed values. This in turn will be
necessary to place the ticks at sensible distances. However,
the conversions need to be precise, which is not the
case for the current to_PSI() functions.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-12-17 11:54:23 -08:00
..
.gitignore
CMakeLists.txt
testAirPressure.cpp
testAirPressure.h
testdivesiteduplication.cpp
testdivesiteduplication.h
testgitstorage.cpp
testgitstorage.h
testgpscoords.cpp
testgpscoords.h
testhelper.cpp
testhelper.h
testmerge.cpp
testmerge.h
testparse.cpp
testparse.h
testparseperformance.cpp
testparseperformance.h
testpicture.cpp
testpicture.h
testplan.cpp
testplan.h
testplannershared.cpp
testplannershared.h
testprofile.cpp
testprofile.h
testqml.cpp
testqml.h
testqPrefCloudStorage.cpp
testqPrefCloudStorage.h
testqPrefDisplay.cpp
testqPrefDisplay.h
testqPrefDiveComputer.cpp
testqPrefDiveComputer.h
testqPrefDivePlanner.cpp
testqPrefDivePlanner.h
testqPrefEquipment.cpp
testqPrefEquipment.h
testqPrefGeneral.cpp
testqPrefGeneral.h
testqPrefGeocoding.cpp
testqPrefGeocoding.h
testqPrefLanguage.cpp
testqPrefLanguage.h
testqPrefLog.cpp
testqPrefLog.h
testqPrefMedia.cpp
testqPrefMedia.h
testqPrefPartialPressureGas.cpp
testqPrefPartialPressureGas.h
testqPrefProxy.cpp
testqPrefProxy.h
testqPrefTechnicalDetails.cpp
testqPrefTechnicalDetails.h
testqPrefUnits.cpp
testqPrefUnits.h
testqPrefUpdateManager.cpp
testqPrefUpdateManager.h
testrenumber.cpp
testrenumber.h
testtaglist.cpp
testtaglist.h
testunitconversion.cpp
testunitconversion.h
tst_qPrefCloudStorage.qml
tst_qPrefDisplay.qml
tst_qPrefDiveComputer.qml
tst_qPrefDivePlanner.qml
tst_qPrefGeneral.qml
tst_qPrefGeocoding.qml
tst_qPrefLanguage.qml
tst_qPrefPartialPressureGas.qml
tst_qPrefProxy.qml
tst_qPrefTechnicalDetails.qml
tst_qPrefUnits.qml
tst_qPrefUpdateManager.qml