I am trying to format float numbers in RAD Studio C++ Builder, but for some reason when I multiply a whole number with a number like 0.01 for example, the result gives about 15 decimal points. I tried RoundTo() and SimpleRoundTo() but nothing works. This is the codes I use:
String value = EditNickel->Text;
float numVal = StrToFloat(value) * 0.05;
ListBoxNickel->Items->Add(numVal);
Example: If I input value as 1, the result would give 0.0500000007450581.