-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormatNumber.h
More file actions
42 lines (14 loc) · 776 Bytes
/
FormatNumber.h
File metadata and controls
42 lines (14 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// FormatNumber.h
// Declares the functions for formatting numbers
#ifndef FORMATNUMBER_H
#define FORMATNUMBER_H
#include <QString>
/** Formats the number with a space as thousand separator, to make it more readable. */
QString formatBigNumber(quint64 a_Number);
/** Formats the number with a space as thousand separator, to make it more readable. */
QString formatBigSignedNumber(qint64 a_Number);
/** Formats the number as memory size, converts to KiB (rounds up) and uses space as thousand separator. */
QString formatMemorySize(quint64 a_Size);
/** Formats the number as signed memory size, converts to KiB (rounds away from zero) and uses space as thousand separator. */
QString formatSignedMemorySize(qint64 a_Size);
#endif // FORMATNUMBER_H