From 2c468dd42989d429ae2ebcd696332a4092b4b4cc Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 1 Mar 2017 22:27:27 +0000 Subject: allow user I/O in millinero, micronero, nanonero, piconero --- src/cryptonote_basic/cryptonote_format_utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cryptonote_basic/cryptonote_format_utils.h') 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 relative_output_offsets_to_absolute(const std::vector& off); std::vector absolute_output_offsets_to_relative(const std::vector& 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 bool t_serializable_object_to_blob(const t_object& to, blobdata& b_blob) -- cgit v1.2.3