Autor Beitrag
Invisible
Hält's aus hier
Beiträge: 8



BeitragVerfasst: So 07.03.04 17:40 
Hi Leute,
wie kann ich zahlen auf zwei, drei, vier oder beliebig viele Nachkommastellen runden.(Zahltyp:real)

mfg

TS
MasterBilke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38

WIN XP
D3 Prof
BeitragVerfasst: So 07.03.04 17:48 
mit

FloatToStrF

wandelst du real in nen string auf bestimmte komma stellen um
Phantom1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 390



BeitragVerfasst: So 07.03.04 17:53 
oder du benutzt die function RoundTo in der math unit.
Brainiac
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 07.03.04 19:32 
Oder wenn du die Stellen vorher schon genau weißt, dann ist es am schnellsten, wenn du einfach mit zwei Zehnerpotenzen multiplizierst:

Beispiel für zwei Stellen nach dem Komma:

GerundeteZahl:=round(Zahl*100)*0.01;