How to calculate the logarithm for a variable base
Title: How to calculate the logarithm for a variable base function Log(x, b: Real): Real; begin Result := ln(x) / ln(b); end; procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage(Format('%f', [Log(10, 10)])); end;