AyuGramDesktop/Telegram/SourceFiles/info/channel_statistics/earn/earn_format.h
2024-12-04 13:51:18 +04:00

25 lines
630 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "data/data_channel_earn.h"
namespace Info::ChannelEarn {
[[nodiscard]] QString MajorPart(Data::EarnInt value);
[[nodiscard]] QString MinorPart(Data::EarnInt value);
[[nodiscard]] QString ToUsd(
Data::EarnInt value,
float64 rate,
int afterFloat);
[[nodiscard]] QString ToUsd(
StarsAmount value,
float64 rate,
int afterFloat);
} // namespace Info::ChannelEarn