earn_format.h 630 B

12345678910111213141516171819202122232425
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "data/data_channel_earn.h"
  9. namespace Info::ChannelEarn {
  10. [[nodiscard]] QString MajorPart(Data::EarnInt value);
  11. [[nodiscard]] QString MinorPart(Data::EarnInt value);
  12. [[nodiscard]] QString ToUsd(
  13. Data::EarnInt value,
  14. float64 rate,
  15. int afterFloat);
  16. [[nodiscard]] QString ToUsd(
  17. StarsAmount value,
  18. float64 rate,
  19. int afterFloat);
  20. } // namespace Info::ChannelEarn