Autor Beitrag
Visum
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 106



BeitragVerfasst: So 28.09.03 18:29 
Hi,
ich hab gerade ein kleines Programm geschrieben, dass die Wahrscheinlichkeitsverteilung beim Würfelwurf berechnet.
Die Ergebnisse trage ich in eine Tabelle (tStringgrid) ein.
Der Code dazu funktioniert auch ohne Probleme bis zu 5 Würfeln, bei 6 Würfeln gibt mir FloatToStr was falsches raus - berechnet wird aber das richtige.

Kann es sein, dass FloatToStr Probleme mit wirklich kleinen Zahlen (fängt hier in dem Beispiel bei 1/6^6 an) hat? Oder liegt das an dem Stringgrid?

Was kann ich machen, dass die Ergebnisse auch korrekt ausgegeben werden?

mfG visum
Visum Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 106



BeitragVerfasst: So 28.09.03 18:33 
lol, kommando zurück - hab jetzt erst das *10^-5 dahinter gesehen.

;)