Forum > Beginners
Sqrt
(1/1)
ThomasK1201:
Hi guys!
Does anybody know how to use a sqrt?
I think it should be something like this:
--- Code: ---Antwoord.Caption := FloatToStr(StrToFloat(Sqrt.RekenmachineVenster1.Text));
--- End code ---
I have other pieces of code where this works with + - * / so the sqrt must be the problem.
Thomas.
User137:
Sqrt is a function, so you should change it to:
--- Code: ---Antwoord.Caption := FloatToStr(Sqrt(StrToFloat(RekenmachineVenster1.Text)));
--- End code ---
ThomasK1201:
Thanks!
Navigation
[0] Message Index