Why do we use floating-point numbers in C#? I don't understand their usage. Please see example below.?
public static BankAccount openBankAccount(string owner, double balance)
{
return openBankAccount(owner, balance, 0.0);
}
public static BankAccount openBankAccount(string owner)
{
return openBankAccount(owner, 0.0);
}
What does 0.0 stand for? What does it represent?
Like owner is owner, balance is balance, but 0.0 has nothing in "public static BankAccount openBankAccount" defining it.