aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/cryptonote_format_utils.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-01 22:27:27 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-02 19:02:41 +0000
commit2c468dd42989d429ae2ebcd696332a4092b4b4cc (patch)
treefd06417f46dd092d1a892093a5b46126d58e1b43 /src/cryptonote_basic/cryptonote_format_utils.h
parentMerge pull request #1798 (diff)
downloadmonero-2c468dd42989d429ae2ebcd696332a4092b4b4cc.tar.xz
allow user I/O in millinero, micronero, nanonero, piconero
Diffstat (limited to 'src/cryptonote_basic/cryptonote_format_utils.h')
-rw-r--r--src/cryptonote_basic/cryptonote_format_utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.h b/src/cryptonote_basic/cryptonote_format_utils.h
index f8c70dc19..1ac908bd7 100644
--- a/src/cryptonote_basic/cryptonote_format_utils.h
+++ b/src/cryptonote_basic/cryptonote_format_utils.h
@@ -102,7 +102,10 @@ namespace cryptonote
uint64_t get_block_height(const block& b);
std::vector<uint64_t> relative_output_offsets_to_absolute(const std::vector<uint64_t>& off);
std::vector<uint64_t> absolute_output_offsets_to_relative(const std::vector<uint64_t>& off);
- std::string print_money(uint64_t amount);
+ void set_default_decimal_point(unsigned int decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT);
+ unsigned int get_default_decimal_point();
+ std::string get_unit(unsigned int decimal_point = -1);
+ std::string print_money(uint64_t amount, unsigned int decimal_point = -1);
//---------------------------------------------------------------
template<class t_object>
bool t_serializable_object_to_blob(const t_object& to, blobdata& b_blob)