9 #include "../headers/Weight.h"
22 int Percent2 = Percent * 100;
44 string F = to_string(Number);
45 unsigned int Period = F.find(
".");
46 if(Period != string::npos)
47 return F.erase((Period + 4),F.length());
A Class For Managing Data For One Weight.
void Set(float Weight)
Sets The Weight Value Using A Float.
int DiffPercent(HK_Weight Weight)
Returns The Percentage Difference Between This And Input Weight.
string Round(float Number)
Rounds Float To 3 Decimal Places.
float GetFloat()
Returns Weight As Float.
int GetInt()
Returns Weight As Int.
string GetString()
Returns Weight As String.
bool IsZero()
Returns True If Weight Is Zero.