diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-03-03 14:31:04 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-03-03 14:31:04 +0200 |
| commit | d35d6261810bea652e526b4c93e6dcf063c498eb (patch) | |
| tree | 4dc30d32c47f6a2e7254b62a989876c839317440 /src/cryptonote_basic/cryptonote_format_utils.h | |
| parent | 2f9ecd4fbaf3efff573440279692560dbdeb02de (diff) | |
| parent | 2c468dd42989d429ae2ebcd696332a4092b4b4cc (diff) | |
| download | monzero-core-d35d6261810bea652e526b4c93e6dcf063c498eb.tar.gz monzero-core-d35d6261810bea652e526b4c93e6dcf063c498eb.tar.xz monzero-core-d35d6261810bea652e526b4c93e6dcf063c498eb.zip | |
Merge pull request #1826
2c468dd4 allow user I/O in millinero, micronero, nanonero, piconero (moneromooo-monero)
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 b527502ac..7b09235b8 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.h +++ b/src/cryptonote_basic/cryptonote_format_utils.h @@ -103,7 +103,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) |
