diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-01 22:27:27 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-02 19:02:41 +0000 |
commit | 2c468dd42989d429ae2ebcd696332a4092b4b4cc (patch) | |
tree | fd06417f46dd092d1a892093a5b46126d58e1b43 /src/cryptonote_basic/cryptonote_format_utils.h | |
parent | Merge pull request #1798 (diff) | |
download | monero-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.h | 5 |
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) |