Delphi > Obecné
Zaokruhlovanie Double hodnoty
Daniel_Andrascik:
Zdravim pani
Ja viem ze float cisla su v programovani vzdy problem a vacsinu zivota sa im vyhybam ked sa to da. Ale teraz mam problem. Nezaokruhli to jak ma, co s tym? Ani
--- Kód: Delphi ---Format('%.2f'... nevrati spravny vysledok. Vid. obrazok...
Daniel_Andrascik:
skusobny konzolovy projekt robi to iste 🤷
Radek Červinka:
Ale z helpu:
RoundTo uses "Banker's Rounding" to determine how to round values that are exactly midway between the two values with the desired number of significant digits. This method rounds to an even number if AValue is not nearer to either value.
Radek Červinka:
To co potrebujes je asi SimpleRoundTo ne?
Daniel_Andrascik:
Vdaka, skusil som, ale nepomohlo 😔
Navigace
[0] Seznam témat
[#] Další strana
Přejít na plnou verzi