aboutsummaryrefslogtreecommitdiff
path: root/unit_label.h
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-06-18 20:27:41 +1200
committerDavid Phillips <david@sighup.nz>2018-06-18 20:27:41 +1200
commit48923aec615908412d00034a4bd69a2200921794 (patch)
treef5ff82e2aa9080908719b9e1e92c517cc767dde2 /unit_label.h
parent8bf20f5eaa5c65072011535c6aa9b1b73bbb85a0 (diff)
downloadsand-leek-48923aec615908412d00034a4bd69a2200921794.tar.xz
Refactor human-friendly unit algorithms
Diffstat (limited to 'unit_label.h')
-rw-r--r--unit_label.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/unit_label.h b/unit_label.h
new file mode 100644
index 0000000..7fe1f2b
--- /dev/null
+++ b/unit_label.h
@@ -0,0 +1,6 @@
+struct unit_label {
+ double lower_bound;
+ char *label;
+};
+
+double make_unit_whatsit(const struct unit_label l[], char **unit, double value);