summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/value.h b/src/value.h
index ee3d414d..49d64ab6 100644
--- a/src/value.h
+++ b/src/value.h
@@ -443,6 +443,13 @@ public:
}
void in_place_round();
+ value_t roundto(int places) const {
+ value_t temp(*this);
+ temp.in_place_roundto(places);
+ return temp;
+ }
+ void in_place_roundto(int places);
+
value_t truncated() const {
value_t temp(*this);
temp.in_place_truncate();
@@ -457,6 +464,13 @@ public:
}
void in_place_floor();
+ value_t ceilinged() const {
+ value_t temp(*this);
+ temp.in_place_ceiling();
+ return temp;
+ }
+ void in_place_ceiling();
+
value_t unrounded() const {
value_t temp(*this);
temp.in_place_unround();