Autor Beitrag
muzy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Sa 06.09.08 15:30 
Hallo an alle,

Ich habe folgendes Problem:

Ich muss ein Objekt auf einer Parabel mit der Formel y=x²+30 in einem festgelegten Wertebereich laufen lassen. Mein Problem ist, dass ich nicht weiß, wie ich bei einer Wurzel

ausblenden Delphi-Quelltext
1:
sqrt(Beliebige Wuzel)					


ein Ergebniss bekomme, welches einen Integer Wert beinhaltet. (So wie man auch auf 2 verscheidene Arten dividieren kann

Es ist ja nicht möglich 1,34455 Pixel oder so darzustellen.

Deswegen wäre ich über eine Antwort richtig froh =)

Danke im Vorraus

Muzy

PS: Die Forensuche habe ich schon benutzt, aber ich habe auch nichts verwertbares gefunden. Auch div. Suchmaschinen haben mir nciht weitergeholfen :(
huuuuuh
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 665
Erhaltene Danke: 19

win xp, (win vista), win 7
VS 2008 Express Edition, VS 2010 Express Edition, VS 2010 Professionell
BeitragVerfasst: Sa 06.09.08 15:32 
hier
ausblenden Delphi-Quelltext
1:
round(sqrt(Beliebiger Wert))					
muzy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Sa 06.09.08 15:35 
Rundet das auf Integer Werte ? oder auf bestimmte Kommastellen ?
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Sa 06.09.08 15:37 
Schau in die Hilfe! :oops:

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen
muzy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Sa 06.09.08 15:41 
Danke, daran hab ich garnicht gedacht :O
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Sa 06.09.08 15:54 
user profile iconmuzy hat folgendes geschrieben:
Danke, daran hab ich garnicht gedacht :O

:shock: Brain, F1, Brain, F1, Brain F1! Google, Brain, Brain, Google, Brain! Forum, Brain, Brain, Brain! :mrgreen: :P

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen